SetPrefix sets a custom prefix for the log (设置日志的 用户自定义前缀字符串)
(prefix string)
| 370 | // SetPrefix sets a custom prefix for the log |
| 371 | // (设置日志的 用户自定义前缀字符串) |
| 372 | func (log *ZinxLoggerCore) SetPrefix(prefix string) { |
| 373 | log.mu.Lock() |
| 374 | defer log.mu.Unlock() |
| 375 | log.prefix = prefix |
| 376 | } |
| 377 | |
| 378 | // SetLogFile sets the log file output |
| 379 | // (设置日志文件输出) |