logger

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 3 Imported by: 0

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