Documentation
¶
Index ¶
- Variables
- func Debugf(format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func IsLevelEnabled(level logrus.Level) bool
- func NewClientLogFile() (io.WriteCloser, error)
- func RemoveOldClientLogFiles() error
- func SetFormatter(formatter logrus.Formatter)
- func SetLevel(level string)
- func SetOutput(out io.Writer)
- func Tracef(format string, args ...interface{})
- func Warnf(format string, args ...interface{})
- func WithFields(fields Fields) *logrus.Entry
- type CliFormatter
- type DaemonFormatter
- type Fields
- type NilFormatter
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugLevel = logrus.DebugLevel
View Source
var TraceLevel = logrus.TraceLevel
Functions ¶
func IsLevelEnabled ¶
func NewClientLogFile ¶
func NewClientLogFile() (io.WriteCloser, error)
NewClientLogFile returns a file handler for mieru client to write logs.
func RemoveOldClientLogFiles ¶
func RemoveOldClientLogFiles() error
RemoveOldClientLogFiles deletes the oldest client log files.
func SetFormatter ¶
func WithFields ¶
Types ¶
type CliFormatter ¶
type CliFormatter struct{}
CliFormatter is a log formatter that works best for command output. It doesn't print time, level, or field data.
type DaemonFormatter ¶
type DaemonFormatter struct{}
DaemonFormatter is the a log formatter that is suitable for daemon.
Click to show internal directories.
Click to hide internal directories.