Documentation
¶
Index ¶
- func InitLogPath(path string, files ...string) (err error)
- type Logger
- func (log *Logger) Debug(msg string, v ...interface{})
- func (log *Logger) DebugF(format string, args ...interface{})
- func (log *Logger) Error(msg string, v ...interface{})
- func (log *Logger) ErrorF(format string, args ...interface{})
- func (log *Logger) Fatal(msg string, v ...interface{})
- func (log *Logger) FatalF(format string, args ...interface{})
- func (log *Logger) Info(msg string, v ...interface{})
- func (log *Logger) InfoF(format string, args ...interface{})
- func (log *Logger) Panic(msg string, v ...interface{})
- func (log *Logger) PanicF(format string, args ...interface{})
- func (log *Logger) Warn(msg string, v ...interface{})
- func (log *Logger) WarnF(format string, args ...interface{})
- func (log *Logger) WithContext(ctx context.Context) contract.LoggerInterface
- type LoggerManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogPath ¶
Types ¶
type Logger ¶
type Logger struct {
Driver contract.LoggerInterface
// contains filtered or unexported fields
}
func NewLoggerV2 ¶ added in v1.1.0
func NewLoggerV2(driver interface{}, config *zap.LoggerConfig) (logger *Logger, err error)
NewLoggerV2 loggerV2 版本
func (*Logger) WithContext ¶
func (log *Logger) WithContext(ctx context.Context) contract.LoggerInterface
type LoggerManager ¶
type LoggerManager struct {
// contains filtered or unexported fields
}
func NewLoggerManager ¶
func NewLoggerManager(config *config.LogConfig) *LoggerManager
Click to show internal directories.
Click to hide internal directories.