Documentation
¶
Overview ¶
Package flog provides slog helpers shared by various FerretDB projects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConsoleHandler ¶
func NewConsoleHandler(out io.Writer, opts *NewConsoleHandlerOpts) *consoleHandler
NewConsoleHandler creates a new console handler.
If out is a valid tty, the consoleHandler will send colorized messages. If NO_COLOR environment variable is set colorized messages are disabled.
Types ¶
type NewConsoleHandlerOpts ¶
type NewConsoleHandlerOpts struct {
Level slog.Leveler
RemoveTime bool
RemoveLevel bool
RemoveSource bool
}
NewConsoleHandlerOpts represents NewConsoleHandler options.
Click to show internal directories.
Click to hide internal directories.