xlog

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 7 Imported by: 6

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.

Jump to

Keyboard shortcuts

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