Documentation
¶
Overview ¶
Package xlog provides extended logging functionality using structured loggers with support for multiple log formats, levels, and integration with tracing.
Index ¶
Constants ¶
View Source
const MsgKey = "msg"
MsgKey is the key used for storing message content in structured logs.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(logType, logLevel string, profile, color, name, version string, nodeName string) (logger log.Logger)
Init initializes and configures a logger with the specified parameters. It sets up consistent logging with metadata like profile, color, service name, version, node name, and trace identifiers. Returns the configured logger.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.