Documentation
¶
Index ¶
- type Logger
- type LogrusLogger
- func (l *LogrusLogger) Debug(msg string, fields ...interface{})
- func (l *LogrusLogger) Error(msg string, fields ...interface{})
- func (l *LogrusLogger) Fatal(msg string, fields ...interface{})
- func (l *LogrusLogger) Info(msg string, fields ...interface{})
- func (l *LogrusLogger) Warn(msg string, fields ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Debug(msg string, fields ...interface{})
Info(msg string, fields ...interface{})
Warn(msg string, fields ...interface{})
Error(msg string, fields ...interface{})
Fatal(msg string, fields ...interface{})
}
Logger 日志接口
type LogrusLogger ¶
type LogrusLogger struct {
// contains filtered or unexported fields
}
LogrusLogger logrus日志实现
func (*LogrusLogger) Debug ¶
func (l *LogrusLogger) Debug(msg string, fields ...interface{})
Debug 调试日志
func (*LogrusLogger) Error ¶
func (l *LogrusLogger) Error(msg string, fields ...interface{})
Error 错误日志
func (*LogrusLogger) Fatal ¶
func (l *LogrusLogger) Fatal(msg string, fields ...interface{})
Fatal 致命错误日志
func (*LogrusLogger) Info ¶
func (l *LogrusLogger) Info(msg string, fields ...interface{})
Info 信息日志
func (*LogrusLogger) Warn ¶
func (l *LogrusLogger) Warn(msg string, fields ...interface{})
Warn 警告日志
Click to show internal directories.
Click to hide internal directories.