Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Parent *Context Name string Module string Zap *zap.Logger Atom *zap.AtomicLevel Children []*Context }
A Context carries the module name and logger across module boundaries
func Child ¶
Child creates a new context sets the given context as it's parent and appends the newly created context as a child
func NewBackground ¶
func NewBackground() *Context
NewBackground constructs a new context with a Atom log level set to fatal level avoiding to write logs.
func WithModule ¶
WithModule creates a new child context with the given module name
Click to show internal directories.
Click to hide internal directories.