View definition

type FormatterFunc

Defined in github.com/cihub/seelog/format.go

Description

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 https://github.com/cihub/seelog/wiki/Formatting for details. Full list (with descriptions) of formatters: https://github.com/cihub/seelog/wiki/Format-reference

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

github.com/cihub/seelog github.com/cihub/seelog-examples