Documentation ¶
Index ¶
- Variables
- func LoggerFromLoggingConfig(loggingConfig *LoggingConfig, writer io.Writer) (log.Logger, error)
- func NewTerminalLogger(loggingType LoggingType, writer io.Writer) (log.Logger, error)
- func OutputLoggerMaker(loggingType LoggingType) (func(writer io.Writer) log.Logger, error)
- type LoggingConfig
- type LoggingType
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = NewLoggingConfig(Json, structure.InfoChannel, structure.TraceChannel)
Functions ¶
func LoggerFromLoggingConfig ¶
func NewTerminalLogger ¶
func OutputLoggerMaker ¶
Types ¶
type LoggingConfig ¶
type LoggingConfig struct { LoggingType LoggingType Channels []structure.Channel }
LoggingConfig describes the channels to listen on, messages not on these channels will be filtered and leaving empty disables logging
func NewLoggingConfig ¶
func NewLoggingConfig(loggingType LoggingType, channels ...structure.Channel) *LoggingConfig
type LoggingType ¶
type LoggingType string
const ( Logfmt LoggingType = "logfmt" Json LoggingType = "json" )
Click to show internal directories.
Click to hide internal directories.