Documentation ¶
Overview ¶
Package levelprefixed defines a delegate adapter that prefixes messages with the log's severity level
Index ¶
Constants ¶
View Source
const DefaultDelimiter = ':'
DefaultDelimiter defines the default delimiter used for the level prefix
View Source
const DefaultPadding = "\t"
DefaultPadding defines the default padding used for the level prefix
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(adaptee commonlog.LevelLogger) adapter.LogAdapter
New constructs a new instance by injecting an adaptee
func NewWithCustomPresentation ¶
func NewWithCustomPresentation(adaptee commonlog.LevelLogger, prefix string, delimiter rune, padding string) adapter.LogAdapter
NewWithCustomPresentation constructs a new instance by injecting an adaptee and setting options to control the presentation of the level prefix
func NewWithPrefix ¶
func NewWithPrefix(adaptee commonlog.LevelLogger, prefix string) adapter.LogAdapter
NewWithPrefix constructs a new instance by injecting an adaptee and setting a prefix
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.