Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FormatFunc ¶
type FormatFunc func(interface{}) string
FormatFunc is the function to format log values with for non primitive data. By default, this is empty and the data will be JSON marshaled.
type Option ¶
type Option func(l *logrusr)
Option is options to give when construction a logrusr logger.
func WithFormatter ¶
func WithFormatter(f FormatFunc) Option
WithFormatter will set the FormatFunc to use.
func WithName ¶
WithName will set an initial name instead of having to call `WithName` on the logger itself after constructing it.
func WithReportCaller ¶
func WithReportCaller() Option
WithReportCaller will enable reporting of the caller.
Click to show internal directories.
Click to hide internal directories.