logger

package
v0.0.0-...-76bc61f Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logger provides utilities for initializing and managing application logging. It supports environment-specific configurations and component-specific loggers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(env string) zerolog.Logger

Init initializes the base logger for the application.

Parameters:

  • env: The current environment (e.g., "dev", "prod").

Returns:

  • zerolog.Logger: The initialized logger instance.

func NewComponentLogger

func NewComponentLogger(logger zerolog.Logger, name string) zerolog.Logger

NewComponentLogger creates a logger for a specific application component.

Parameters:

  • logger: The base logger instance.
  • name: The name of the component.

Returns:

  • zerolog.Logger: The component-specific logger instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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