package exzerolog
import "go.mau.fi/util/exzerolog"
Index ¶
Functions ¶
func CallerWithFunctionName ¶
CallerWithFunctionName is an implementation for zerolog.CallerMarshalFunc that includes the caller function name in addition to the file and line number.
Use as
zerolog.CallerMarshalFunc = exzerolog.CallerWithFunctionName
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
LogWriter wraps a zerolog.Logger and provides an io.Writer with buffering so each written line is logged separately.
func NewLogWriter ¶
func (*LogWriter) WithField ¶
func (*LogWriter) WithLevel ¶
func (*LogWriter) Write ¶
Source Files ¶
callermarshal.go writer.go
- Version
- v0.1.0
- Published
- Sep 6, 2023
- Platform
- darwin/amd64
- Imports
- 6 packages
- Last checked
- 3 hours ago –
Tools for package owners.