SetLogFile sets the log file output (设置日志文件输出)
(fileDir string, fileName string)
| 378 | // SetLogFile sets the log file output |
| 379 | // (设置日志文件输出) |
| 380 | func (log *ZinxLoggerCore) SetLogFile(fileDir string, fileName string) { |
| 381 | if log.fw != nil { |
| 382 | log.fw.Close() |
| 383 | } |
| 384 | log.fw = zutils.New(filepath.Join(fileDir, fileName)) |
| 385 | } |
| 386 | |
| 387 | // SetMaxAge 最大保留天数 |
| 388 | func (log *ZinxLoggerCore) SetMaxAge(ma int) { |
no test coverage detected