Documentation ¶
Overview ¶
Package dlog is a build-time enabled or disabled logger. Godoc shows disabled state because it built in by default.
Index ¶
Constants ¶
View Source
const ( // CallerUnknown returned when caller isn't determined CallerUnknown = "UNKNOWN" // StateEnabled is to check if dlog.State enabled StateEnabled = "enabled" // StateDisabled is to check if dlog.State disabled StateDisabled = "disabled" )
View Source
const State = "disabled"
State handles dlog state. Can be "disabled" or "enabled".
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Caller ¶
Caller info
type WithCaller ¶
type WithCaller struct{}
WithCaller is a dlog with caller info prefix
func (*WithCaller) F ¶
func (*WithCaller) F(f string, v ...interface{})
F is a build-time enabled printf
Click to show internal directories.
Click to hide internal directories.