mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
Merge branch 'develop' of https://github.com/gogf/gf
This commit is contained in:
@ -153,3 +153,8 @@ func GetLevelPrefix(level int) string {
|
||||
func SetHandlers(handlers ...Handler) {
|
||||
logger.SetHandlers(handlers...)
|
||||
}
|
||||
|
||||
//SetWriterColorEnable sets the file logging with color
|
||||
func SetWriterColorEnable(enabled bool) {
|
||||
logger.SetWriterColorEnable(enabled)
|
||||
}
|
||||
|
||||
@ -249,3 +249,8 @@ func (l *Logger) SetPrefix(prefix string) {
|
||||
func (l *Logger) SetHandlers(handlers ...Handler) {
|
||||
l.config.Handlers = handlers
|
||||
}
|
||||
|
||||
//SetWriterColorEnable sets the file logging with color
|
||||
func (l *Logger) SetWriterColorEnable(enabled bool) {
|
||||
l.config.WriterColorEnable = enabled
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user