gccustomlog

package
v0.0.0-...-54f7cab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL