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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.