Documentation
¶
Index ¶
Constants ¶
View Source
const (
Syslog = "syslog"
)
Variables ¶
View Source
var DefaultLogger = initDefaultLogger()
Functions ¶
func SetLogFormat ¶
func SetLogFormat(format LogFormat)
func SetLogLevel ¶
func SetLogLevelToDebug ¶
func SetLogLevelToDebug()
func SetupLogging ¶
func SetupLogging(logOpts ...LogOption)
Types ¶
type LogOption ¶
type LogOption func(*LogOptions)
func WithJsonFormat ¶
func WithJsonFormat() LogOption
func WithLogFormat ¶
func WithLogLevel ¶
func WithLogOutputAsStderr ¶
func WithLogOutputAsStderr() LogOption
func WithTextFormat ¶
func WithTextFormat() LogOption
type LogOptions ¶
type LogOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.