logger

package
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(level zerolog.Level, format Format)

InitLogger initializes the global zerolog logger with the specified level and format. By default, uses JSON format. Set format to "human" for human-readable output. Use this function to configure logging during initialization.

func SetDebugLogging

func SetDebugLogging()

SetDebugLogging enables debug level logging in human-readable format. Useful for troubleshooting flow execution.

Types

type Format

type Format string

Format LogFormat represents the log output format.

const (
	// JSON outputs logs in JSON format (production-ready, default).
	JSON Format = "json"
	// HUMAN outputs logs in human-readable format (development).
	HUMAN Format = "human"
)

Jump to

Keyboard shortcuts

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