log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = zerolog.New(os.Stderr).With().Timestamp().Caller().Logger()

Logger is the global zerolog.Logger instance.

Functions

func Debug

func Debug() *zerolog.Event

Debug starts a new log event with debug level.

func DebugContext

func DebugContext(ctx context.Context) *zerolog.Event

DebugContext starts a new log event with debug level

func Error

func Error() *zerolog.Event

Error starts a new log event with error level.

func ErrorContext

func ErrorContext(ctx context.Context) *zerolog.Event

ErrorContext starts a new log event with error level and appends fields defined in the context.

func Fatal

func Fatal() *zerolog.Event

Fatal starts a new log event with fatal level.

func FatalContext

func FatalContext(ctx context.Context) *zerolog.Event

FatalContext starts a new log event with fatal level and appends fields defined in the context.

func Info

func Info() *zerolog.Event

Info starts a new log event with info level.

func InfoContext

func InfoContext(ctx context.Context) *zerolog.Event

InfoContext starts a new log event with info level and appends fields defined in the context.

func Trace

func Trace() *zerolog.Event

Trace starts a new log event with trace level.

func TraceContext

func TraceContext(ctx context.Context) *zerolog.Event

TraceContext starts a new log event with trace level and appends fields defined in the context.

func Warn

func Warn() *zerolog.Event

Warn starts a new log event with warn level.

func WarnContext

func WarnContext(ctx context.Context) *zerolog.Event

WarnContext starts a new log event with warn level and appends fields defined in the context.

func WithCommand

func WithCommand(ctx context.Context, command string) context.Context

WithCommand adds the command name to the context.

func WithConnection

func WithConnection(ctx context.Context, connection int32) context.Context

WithConnection adds the connection identifier to the context.

func WithOrigin

func WithOrigin(ctx context.Context, origin string) context.Context

WithOrigin adds the origin of processing to the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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