Documentation
¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Exit()
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitLog(opts ...config.OptionFunc) error
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Print(args ...interface{})
- func Printf(template string, args ...interface{})
- func SetLogger(g ILogger)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type ILogger
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) EnabledLevel(lvl level.LogLevel) bool
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(template string, args ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) GetLevel() level.LogLevel
- func (l *Logger) GetLoggerName() string
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Panic(args ...interface{})
- func (l *Logger) Panicf(template string, args ...interface{})
- func (l *Logger) Panicln(args ...interface{})
- func (l *Logger) Print(args ...interface{})
- func (l *Logger) Printf(template string, args ...interface{})
- func (l *Logger) Println(args ...interface{})
- func (l *Logger) SetLevel(lvl level.LogLevel)
- func (l *Logger) SetLoggerName(name string)
- func (l *Logger) Stop() error
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(template string, args ...interface{})
- type StdLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = config.GlobalConfig
Functions ¶
func InitLog ¶
func InitLog(opts ...config.OptionFunc) error
Types ¶
type ILogger ¶
type ILogger interface {
GetLoggerName() string
SetLoggerName(string)
GetLevel() level.LogLevel
SetLevel(level.LogLevel)
EnabledLevel(lvl level.LogLevel) bool
Debug(...interface{})
Info(...interface{})
Warn(...interface{})
Error(...interface{})
Print(...interface{})
Fatal(...interface{})
Panic(...interface{})
Debugf(template string, args ...interface{})
Infof(template string, args ...interface{})
Warnf(template string, args ...interface{})
Errorf(template string, args ...interface{})
Printf(template string, args ...interface{})
Fatalf(template string, args ...interface{})
Panicf(template string, args ...interface{})
Stop() error
}
type Logger ¶
type Logger struct {
Name string
Level level.LogLevel
TradeIDFunc func(entry *message.Entry) string
ExitFunc func(code int) // Function to exit the application, defaults to `os.Exit()`
ExitOnFatal bool
ExitOnPanic bool
IsRecordCaller bool
// contains filtered or unexported fields
}
func (*Logger) GetLoggerName ¶ added in v0.2.12
func (*Logger) SetLoggerName ¶ added in v0.2.12
Click to show internal directories.
Click to hide internal directories.
