package
0.0.0-20240718093700-d18535501a98
Repository: https://github.com/gwos/tcg.git
Documentation: pkg.go.dev

# Functions

IsDebugEnabled defines debugging.
LastErrors returns last error writes.
NewLoggerWriter returns writer.
WithColors sets formatter option.
WithCondense enables condensing similar records.
WithLastErrors sets count of buffered writes.
WithLevel sets level option.
WithLogFile sets filelog option.
WithTimeFormat sets formatter option.
WriteLogBuffer writes buffered data to current logger.

# Structs

CondenseWriter handles similar writes by caller field.
FilterWriter implements sanitizing writes by Regexp map.
LogBuffer collects writes if level passed.
LogFile provides file rotation.
LogRecord wraps JSON-like data from logger.
SLogHandler translates slog.Record into zerolog.Event inspired by https://github.com/golang/example/blob/master/slog-handler-guide/README.md.

# Type aliases

Option defines writer option type.