Documentation ¶
Overview ¶
Package logx contains logging extensions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { // Emoji is OPTIONAL and indicates whether to enable emojis. Emoji bool // Now is the MANDATORY function to compute the current time. Now func() time.Time // StartTime is MANDATORY and indicates when we started logging. StartTime time.Time // Writer is MANDATORY and is the underlying writer. io.Writer }
Handler implements github.com/apex/log.Handler.
func NewHandlerWithDefaultSettings ¶
func NewHandlerWithDefaultSettings() *Handler
NewHandlerWithDefaultSettings creates a new Handler with default settings.
Click to show internal directories.
Click to hide internal directories.