Documentation ¶
Index ¶
Constants ¶
View Source
const TcpSinkCheckSec = 5
View Source
const TcpSinkConnTimeout = 100 * time.Millisecond
Variables ¶
This section is empty.
Functions ¶
func ConfigureDevLogger ¶
func ConfigureProdLogger ¶
func ConfigureZapGlobals ¶
func ConfigureZapGlobals()
func NewPrettyConsoleEncoder ¶
func NewPrettyConsoleEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder
NewConsoleEncoder creates an encoder whose output is designed for human - rather than machine - consumption. It serializes the core log entry data (message, level, timestamp, etc.) in a plain-text format and leaves the structured context as pretty-printed multiline JSON.
Additional functionality includes easily-readable stack traces.
Note that while pretty-printing is useful in development, it's bad for production
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.