Documentation ¶
Index ¶
- Constants
- func Config(appName string, level Level, console bool, filename string, format LogFormat, ...)
- func Debugf(fmt string, args ...interface{})
- func DumpFormattedJson(j interface{})
- func DumpKeyValue(j interface{})
- func Errorf(fmt string, args ...interface{})
- func Fatalf(fmt string, args ...interface{})
- func Flush()
- func Infof(fmt string, args ...interface{})
- func Json(j interface{})
- func Messagef(level Level, fmt string, args ...interface{})
- func NewNormalCaller() logrus.Hook
- func Panicf(fmt string, args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Fields
- type FileLogger
- func (fileLogger *FileLogger) AppName() string
- func (fileLogger *FileLogger) Debugf(fmt string, args ...interface{})
- func (fileLogger *FileLogger) Errorf(fmt string, args ...interface{})
- func (fileLogger *FileLogger) Fatalf(fmt string, args ...interface{})
- func (fileLogger *FileLogger) Flush()
- func (fileLogger *FileLogger) Infof(fmt string, args ...interface{})
- func (fileLogger *FileLogger) Messagef(level Level, fmt string, args ...interface{})
- func (fileLogger *FileLogger) Panicf(fmt string, args ...interface{})
- func (fileLogger *FileLogger) Warnf(fmt string, args ...interface{})
- func (fileLogger *FileLogger) With(fields Fields) *FileLogger
- func (fileLogger *FileLogger) ZapLogger() *zap.Logger
- type Format
- type Level
- type LogFormat
- type Logger
- func (log *Logger) AppName() string
- func (log *Logger) Debugf(fmt string, args ...interface{})
- func (log *Logger) Errorf(fmt string, args ...interface{})
- func (log *Logger) Fatalf(fmt string, args ...interface{})
- func (log *Logger) Flush()
- func (log *Logger) Infof(fmt string, args ...interface{})
- func (log *Logger) Json(j interface{})
- func (log *Logger) Messagef(level Level, fmt string, args ...interface{})
- func (log *Logger) Panicf(fmt string, args ...interface{})
- func (log *Logger) Warnf(fmt string, args ...interface{})
- func (log *Logger) ZapLogger() *zap.Logger
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DumpFormattedJson ¶
func DumpFormattedJson(j interface{})
func DumpKeyValue ¶
func DumpKeyValue(j interface{})
func NewNormalCaller ¶
Types ¶
type FileLogger ¶
type FileLogger struct {
// contains filtered or unexported fields
}
func NewFileLogger ¶
func (*FileLogger) AppName ¶
func (fileLogger *FileLogger) AppName() string
func (*FileLogger) Debugf ¶
func (fileLogger *FileLogger) Debugf(fmt string, args ...interface{})
func (*FileLogger) Errorf ¶
func (fileLogger *FileLogger) Errorf(fmt string, args ...interface{})
func (*FileLogger) Fatalf ¶
func (fileLogger *FileLogger) Fatalf(fmt string, args ...interface{})
func (*FileLogger) Flush ¶
func (fileLogger *FileLogger) Flush()
func (*FileLogger) Infof ¶
func (fileLogger *FileLogger) Infof(fmt string, args ...interface{})
func (*FileLogger) Messagef ¶
func (fileLogger *FileLogger) Messagef(level Level, fmt string, args ...interface{})
func (*FileLogger) Panicf ¶
func (fileLogger *FileLogger) Panicf(fmt string, args ...interface{})
func (*FileLogger) Warnf ¶
func (fileLogger *FileLogger) Warnf(fmt string, args ...interface{})
func (*FileLogger) With ¶
func (fileLogger *FileLogger) With(fields Fields) *FileLogger
func (*FileLogger) ZapLogger ¶
func (fileLogger *FileLogger) ZapLogger() *zap.Logger
Click to show internal directories.
Click to hide internal directories.