mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 21:01:31 +00:00
add to upper case
This commit is contained in:
parent
0fb4a8af24
commit
8344a60552
@ -475,7 +475,7 @@ var beeLoggerMap = struct {
|
|||||||
func GetLogger(prefixes ...string) *log.Logger {
|
func GetLogger(prefixes ...string) *log.Logger {
|
||||||
prefix := append(prefixes, "")[0]
|
prefix := append(prefixes, "")[0]
|
||||||
if prefix != "" {
|
if prefix != "" {
|
||||||
prefix = fmt.Sprintf(`[%s] `, prefix)
|
prefix = fmt.Sprintf(`[%s] `, strings.ToUpper(prefix))
|
||||||
}
|
}
|
||||||
beeLoggerMap.RLock()
|
beeLoggerMap.RLock()
|
||||||
l, ok := beeLoggerMap.logs[prefix]
|
l, ok := beeLoggerMap.logs[prefix]
|
||||||
|
Loading…
Reference in New Issue
Block a user