Documentation
¶
Overview ¶
Package sdlogr: another implementation of logr interface with addition of systemd specific prefixes (severity levels). This logger is meant for apps/services that are started via systemd and want to send their logs to system journal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶
NewWithOptions returns a logr.Logger
func UnmarshalStruct ¶
func UnmarshalStruct(i interface{}) string
UnmarshalStruct converts struct to string (including keys) using "%+v" format
Types ¶
type Options ¶
type Options struct { // Depth biases the assumed number of call frames to the "true" caller. // Values less than zero will be treated as zero. Depth int // Verbosity tells sdlogr which V logs to produce. Higher values enable // more logs. Info logs at or below this level will be written, while logs // above this level will be discarded. Verbosity int // LogCallerInfo if this is false caller file name and line number will not be logged in logr.Info. Default is true, caller file name and line number are always logged in logr.Error. LogCallerInfo bool // Out where to send logs. Defaults to os.Stdout Out io.Writer }
Click to show internal directories.
Click to hide internal directories.