Documentation
¶
Index ¶
- Constants
- func Debug(args string)
- func Debugf(fmt string, args ...interface{})
- func Error(args string)
- func Errorf(fmt string, args ...interface{})
- func Fatal(args string)
- func Fatalf(fmt string, args ...interface{})
- func Info(args string)
- func Infof(fmt string, args ...interface{})
- func Init(config *Config)
- func Panic(args string)
- func Panicf(fmt string, args ...interface{})
- func Warn(args string)
- func Warnf(fmt string, args ...interface{})
- type Config
Constants ¶
View Source
const (
// RFC3339Milli is the logger time format.
RFC3339Milli = "2006-01-02T15:04:05.999Z07:00"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // SystemLogfilePath is the path of logfile, // if it is empty, it would be ./logs/containeragent.log SystemLogfilePath string // Debug specifies the lowest log level is Debug if true, // otherwise Info is the one. Debug bool // contains filtered or unexported fields }
Config is logger config.
Click to show internal directories.
Click to hide internal directories.