Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mask ¶
type Mask byte
Mask represents a log severity mask See POSIX.1-2008. Also see POSIX.1-2001, RFC 3164, and RFC 5424.
const ( Emerg Mask = (1 << pri.Emerg) Alert Mask = (1 << pri.Alert) Crit Mask = (1 << pri.Crit) Err Mask = (1 << pri.Err) Warning Mask = (1 << pri.Warning) Notice Mask = (1 << pri.Notice) Info Mask = (1 << pri.Info) Debug Mask = (1 << pri.Debug) )
Masks which only allow messages matching the corresponding severity level to be processed. These values would be passed to SetLogMask.
func GetFromEnv ¶
func GetFromEnv() Mask
GetFromEnv gives the Mask indicated by environment variables (or else the default Mask).
Click to show internal directories.
Click to hide internal directories.