Documentation ¶
Overview ¶
Package nest allows users to use a Logger interface to create another Logger interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Marker ¶
type Marker string
Marker is a string synonym. The type difference allows underlying log implementations to distinguish between the PreNest marker and a "pre-nest" string literal.
const ( // PreNest is a marker placed between the parent and child values // when calling the wrapped Log method. For example: // // parent := SomeLogger() // child := New(parent, "a", "b") // child.Log("c", "d") // // will result in: // // parent.Log("a", "b", PreLog, "c", "d") PreNest Marker = "pre-nest" )
Click to show internal directories.
Click to hide internal directories.