package logger import ( "fmt" ) /** access.log文件 */ var ( AccessInfof = func(format string, v ...interface{}) { err := _fileLogWriter.Accesslog().RawOutput(fmt.Sprintf(format, v...)) if err != nil { consoleLogger.Errorf("write access info log to file fail, err: %s", err.Error()) } } AccessErrorf = func(format string, v ...interface{}) { err := _fileLogWriter.Accesslog().RawOutput(fmt.Sprintf(format, v...)) if err != nil { consoleLogger.Errorf("write access error log to file fail, err: %s", err.Error()) } } )