Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PrefixTokenSeparator is and string printed between prefix and ansible output PrefixTokenSeparator = "\u2500\u2500" // DefaultLogFormatLayout is the default format when is used the LogFormat transformer DefaultLogFormatLayout = "2006-01-02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TransformerFunc ¶
TransformerFunc is used to enrich or update messages before to be printed out
func Append ¶
func Append(expression string) TransformerFunc
Append is a transformer function that includes a suffix to a message expression
func IgnoreMessage ¶
func IgnoreMessage(skipPatterns []string) TransformerFunc
IgnoreMessage is a transformer function that returns a blank string when the message match to any skipping pattern
func LogFormat ¶
func LogFormat(layout string, f func(string) string) TransformerFunc
LogFormat is a transformer function that includes a time reference at the begining of a message expression
func Prepend ¶
func Prepend(expression string) TransformerFunc
Prepend is a transformer function that includes a prefix to a message expression
Click to show internal directories.
Click to hide internal directories.