Documentation
¶
Index ¶
- Constants
- func Debug(v ...any)
- func DebugF(format string, v ...any)
- func Error(v ...any)
- func ErrorF(format string, v ...any)
- func Info(v ...any)
- func InfoF(format string, v ...any)
- func Warning(v ...any)
- func WarningF(format string, v ...any)
- type FileLogger
- func (f FileLogger) Debug(v ...interface{})
- func (f FileLogger) Debugf(format string, v ...interface{})
- func (f FileLogger) Error(v ...interface{})
- func (f FileLogger) Errorf(format string, v ...interface{})
- func (f FileLogger) Info(v ...interface{})
- func (f FileLogger) Infof(format string, v ...interface{})
- func (f FileLogger) Sync() error
- func (f FileLogger) Warn(v ...interface{})
- func (f FileLogger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( DebugLevel = _logLevel(zapcore.DebugLevel) InfoLevel = _logLevel(zapcore.InfoLevel) WarnLevel = _logLevel(zapcore.WarnLevel) FatalLevel = _logLevel(zapcore.FatalLevel) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileLogger ¶
type FileLogger struct {
// contains filtered or unexported fields
}
func New ¶
func New(logPath string, minLogLevel _logLevel) (FileLogger, error)
New creates a new FileLogger.
func (FileLogger) Debug ¶
func (f FileLogger) Debug(v ...interface{})
Debug logs a message at DebugLevel. The message includes any fields passed
func (FileLogger) Debugf ¶
func (f FileLogger) Debugf(format string, v ...interface{})
Debugf logs a message at DebugLevel. The message includes any fields passed
func (FileLogger) Error ¶
func (f FileLogger) Error(v ...interface{})
Error logs a message at ErrorLevel. The message includes any fields passed
func (FileLogger) Errorf ¶
func (f FileLogger) Errorf(format string, v ...interface{})
Errorf logs a message at ErrorLevel. The message includes any fields passed
func (FileLogger) Info ¶
func (f FileLogger) Info(v ...interface{})
Info logs a message at InfoLevel. The message includes any fields passed
func (FileLogger) Infof ¶
func (f FileLogger) Infof(format string, v ...interface{})
Infof logs a message at InfoLevel. The message includes any fields passed
func (FileLogger) Warn ¶
func (f FileLogger) Warn(v ...interface{})
Warn logs a message at WarnLevel. The message includes any fields passed
func (FileLogger) Warnf ¶
func (f FileLogger) Warnf(format string, v ...interface{})
Warnf logs a message at WarnLevel. The message includes any fields passed
Click to show internal directories.
Click to hide internal directories.