logger

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: AGPL-3.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02T15:04:05.000"

Time format with milliseconds

Variables

View Source
var JsonLogger = true

JsonLogger controls whether the logger outputs in JSON format or console format. Set this to false to use a human-readable console format.

Functions

func CreateLogger

func CreateLogger(component string, writer io.Writer) *zerolog.Logger

func CreateWriter

func CreateWriter() io.Writer

func NewLogger

func NewLogger(component string) *zerolog.Logger

NewLogger creates a new zerolog logger with a console output format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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