Documentation
¶
Index ¶
Constants ¶
View Source
const ( LogTypeLog = "log" LogTypeRequest = "request" )
Variables ¶
This section is empty.
Functions ¶
func ApplyOptionsToLoggers ¶
Types ¶
type Logger ¶
type Logger interface {
EnableJSONOutput(enabled bool)
SetAppID(id string)
SetOutputLevel(outputLevel LogLevel)
WithLogType(logType string) Logger
Info(args ...interface{})
Infof(format string, args ...interface{})
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Warn(args ...interface{})
Warnf(format string, args ...interface{})
Error(args ...interface{})
Errorf(format string, args ...interface{})
Fatal(args ...interface{})
Fatalf(format string, args ...interface{})
}
type Options ¶
type Options struct {
JSONFormatEnabled bool
OutputLevel string
// contains filtered or unexported fields
}
func DefaultOptions ¶
func DefaultOptions() Options
func (*Options) AttachCmdFlags ¶
func (*Options) SetOutputLevel ¶
Click to show internal directories.
Click to hide internal directories.