mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 22:50:50 +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 {
|
||||
prefix := append(prefixes, "")[0]
|
||||
if prefix != "" {
|
||||
prefix = fmt.Sprintf(`[%s] `, prefix)
|
||||
prefix = fmt.Sprintf(`[%s] `, strings.ToUpper(prefix))
|
||||
}
|
||||
beeLoggerMap.RLock()
|
||||
l, ok := beeLoggerMap.logs[prefix]
|
||||
|
Loading…
Reference in New Issue
Block a user