log

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package log provides structured logging using zerolog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close added in v0.8.3

func Close() error

Close drains the logger with the same bounded timeout used by Fatal.

func Debug

func Debug() *zerolog.Event

func DroppedMessages added in v0.8.3

func DroppedMessages() uint64

DroppedMessages returns the lifetime number of events dropped because the queue is full or shutdown has started. Producers update the count on rejection.

func Error

func Error() *zerolog.Event

func Fatal

func Fatal() *zerolog.Event

func Info

func Info() *zerolog.Event

func SetJSON

func SetJSON()

SetJSON switches to JSON output format.

func SetLevel

func SetLevel(level string)

SetLevel sets the global log level.

func Shutdown added in v0.8.3

func Shutdown(ctx context.Context) error

Shutdown stops admitting events and drains the queue until ctx expires. A blocked sink can outlive the deadline; subsequent calls join the same drain.

func Trace

func Trace() *zerolog.Event

Convenience functions

func Warn

func Warn() *zerolog.Event

Types

This section is empty.

Jump to

Keyboard shortcuts

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