Documentation ¶
Index ¶
- type FilterLogger
- type FilterOption
- func WithCallerFormatter(f ...zerolog.Formatter) FilterOption
- func WithDelimiter(delim rune) FilterOption
- func WithErrFieldNameFormatter(f ...zerolog.Formatter) FilterOption
- func WithErrFieldValueFormatter(f ...zerolog.Formatter) FilterOption
- func WithFieldNameFormatter(f ...zerolog.Formatter) FilterOption
- func WithFieldValueFormatter(f ...zerolog.Formatter) FilterOption
- func WithLevelFormatter(f ...zerolog.Formatter) FilterOption
- func WithMessageFormatter(f ...zerolog.Formatter) FilterOption
- func WithPartsOrder(o []string) FilterOption
- func WithTimestampFormatter(f ...string) FilterOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterLogger ¶
type FilterLogger interface { gclog.Logger TagLog(msg string, level gclog.LogLevel, err error, csfCount int, fields ...gclog.LogFields) GetDelimiter() string UpdateBaseLogger(l gclog.Logger) IsTimestampFormatterEnabled() bool IsLevelFormatterEnabled() bool IsCallerFormatterEnabled() bool IsErrorFormatterEnabled() bool }
func New ¶
func New(tag string, w io.Writer, filterOpts []FilterOption, logOpts ...gclog.LogOption) (l FilterLogger, err error)
type FilterOption ¶
type FilterOption func(*filterWriter) error
func WithCallerFormatter ¶
func WithCallerFormatter(f ...zerolog.Formatter) FilterOption
func WithDelimiter ¶
func WithDelimiter(delim rune) FilterOption
func WithErrFieldNameFormatter ¶
func WithErrFieldNameFormatter(f ...zerolog.Formatter) FilterOption
func WithErrFieldValueFormatter ¶
func WithErrFieldValueFormatter(f ...zerolog.Formatter) FilterOption
func WithFieldNameFormatter ¶
func WithFieldNameFormatter(f ...zerolog.Formatter) FilterOption
func WithFieldValueFormatter ¶
func WithFieldValueFormatter(f ...zerolog.Formatter) FilterOption
func WithLevelFormatter ¶
func WithLevelFormatter(f ...zerolog.Formatter) FilterOption
func WithMessageFormatter ¶
func WithMessageFormatter(f ...zerolog.Formatter) FilterOption
func WithPartsOrder ¶
func WithPartsOrder(o []string) FilterOption
func WithTimestampFormatter ¶
func WithTimestampFormatter(f ...string) FilterOption
Click to show internal directories.
Click to hide internal directories.