Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
OutputPath string // Path to the log file (stdout for console)
Level LogLevel // Log level (DEBUG, INFO, WARNING, ERROR)
Format string // Log format (json, text)
}
Config is the configuration for the logger.
type Logger ¶
Logger is the logger. It wraps the zerolog logger.
func NewLoggerWithConfig ¶
NewLoggerWithConfig creates a new logger with the given configuration.
func (*Logger) LogErrorWithStack ¶
LogErrorWithStack logs an error with stack trace.
func (*Logger) LogStructuredData ¶
LogStructuredData logs structured data.
Click to show internal directories.
Click to hide internal directories.