Documentation ¶
Index ¶
- Variables
- func Debug() *zerolog.Event
- func DebugContext(ctx context.Context) *zerolog.Event
- func Error() *zerolog.Event
- func ErrorContext(ctx context.Context) *zerolog.Event
- func Fatal() *zerolog.Event
- func FatalContext(ctx context.Context) *zerolog.Event
- func Info() *zerolog.Event
- func InfoContext(ctx context.Context) *zerolog.Event
- func Trace() *zerolog.Event
- func TraceContext(ctx context.Context) *zerolog.Event
- func Warn() *zerolog.Event
- func WarnContext(ctx context.Context) *zerolog.Event
- func WithCommand(ctx context.Context, command string) context.Context
- func WithConnection(ctx context.Context, connection int32) context.Context
- func WithOrigin(ctx context.Context, origin string) context.Context
Constants ¶
This section is empty.
Variables ¶
var Logger = zerolog.New(os.Stderr).With().Timestamp().Caller().Logger()
Logger is the global zerolog.Logger instance.
Functions ¶
func DebugContext ¶
DebugContext starts a new log event with debug level
func ErrorContext ¶
ErrorContext starts a new log event with error level and appends fields defined in the context.
func FatalContext ¶
FatalContext starts a new log event with fatal level and appends fields defined in the context.
func InfoContext ¶
InfoContext starts a new log event with info level and appends fields defined in the context.
func TraceContext ¶
TraceContext starts a new log event with trace level and appends fields defined in the context.
func WarnContext ¶
WarnContext starts a new log event with warn level and appends fields defined in the context.
func WithCommand ¶
WithCommand adds the command name to the context.
func WithConnection ¶
WithConnection adds the connection identifier to the context.
Types ¶
This section is empty.