View definition

type FormatterFunc

Defined in


FormatterFunc represents one formatter object that starts with '%' sign in the 'format' attribute of the 'format' config item. These special symbols are replaced with context values or special strings when message is written to byte receiver.

Check for details. Full list (with descriptions) of formatters:

FormatterFunc takes raw log message, level, log context and returns a string, number (of any type) or any object that can be evaluated as string.

FormatterFunc is referenced in 2 repositories