Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(args ...interface{})
- func DebugWith(fields map[string]interface{}, args ...interface{})
- func Debugf(format string, args ...interface{})
- func DebugfWith(fields map[string]interface{}, format string, args ...interface{})
- func Error(args ...interface{})
- func ErrorWith(fields map[string]interface{}, args ...interface{})
- func Errorf(format string, args ...interface{})
- func ErrorfWith(fields map[string]interface{}, format string, args ...interface{})
- func Info(args ...interface{})
- func InfoWith(fields map[string]interface{}, args ...interface{})
- func Infof(format string, args ...interface{})
- func InfofWith(fields map[string]interface{}, format string, args ...interface{})
- func Warn(args ...interface{})
- func WarnWith(fields map[string]interface{}, args ...interface{})
- func Warnf(format string, args ...interface{})
- func WarnfWith(fields map[string]interface{}, format string, args ...interface{})
- type EmixConfig
- type Fields
- type LogConfig
- type LogEntry
- func (l *LogEntry) Debug(args ...interface{})
- func (l *LogEntry) DebugWith(fields map[string]interface{}, args ...interface{})
- func (l *LogEntry) Debugf(format string, args ...interface{})
- func (l *LogEntry) DebugfWith(fields map[string]interface{}, format string, args ...interface{})
- func (l *LogEntry) Error(args ...interface{})
- func (l *LogEntry) ErrorWith(fields map[string]interface{}, args ...interface{})
- func (l *LogEntry) Errorf(format string, args ...interface{})
- func (l *LogEntry) ErrorfWith(fields map[string]interface{}, format string, args ...interface{})
- func (l *LogEntry) Info(args ...interface{})
- func (l *LogEntry) InfoWith(fields map[string]interface{}, args ...interface{})
- func (l *LogEntry) Infof(format string, args ...interface{})
- func (l *LogEntry) InfofWith(fields map[string]interface{}, format string, args ...interface{})
- func (l *LogEntry) Warn(args ...interface{})
- func (l *LogEntry) WarnWith(fields map[string]interface{}, args ...interface{})
- func (l *LogEntry) Warnf(format string, args ...interface{})
- func (l *LogEntry) WarnfWith(fields map[string]interface{}, format string, args ...interface{})
- type LogFormat
- type LogLevel
- type LogOutType
- type Operation
- type Option
- type OptionLogger
- type RootConfig
Constants ¶
View Source
const ( ConsoleOut LogOutType = "console" FileOut = "file" DebugLog LogLevel = "debug" InfoLog = "info" WarnLog = "warn" ErrorLog = "error" TextLog LogFormat = "text" JsonLog = "json" )
Variables ¶
View Source
var GlobalLevel = DebugLog
Functions ¶
func DebugfWith ¶
func ErrorfWith ¶
Types ¶
type EmixConfig ¶
type EmixConfig struct {
Log []LogConfig `yaml:"log,flow"`
}
type LogConfig ¶
type LogEntry ¶
type LogEntry struct {
// contains filtered or unexported fields
}
func NewLogEntry ¶
func NewLogEntryFromOption ¶
func (*LogEntry) DebugfWith ¶
func (*LogEntry) ErrorfWith ¶
type LogOutType ¶
type LogOutType string
type OptionLogger ¶
func (*OptionLogger) Log ¶
func (r *OptionLogger) Log(level logrus.Level, args ...interface{})
func (*OptionLogger) Logf ¶
func (r *OptionLogger) Logf(level logrus.Level, format string, args ...interface{})
func (*OptionLogger) Logln ¶
func (r *OptionLogger) Logln(level logrus.Level, args ...interface{})
type RootConfig ¶
type RootConfig struct {
Emix EmixConfig `yaml:"emix"`
}
Click to show internal directories.
Click to hide internal directories.