logger

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APILoggerFactory

type APILoggerFactory struct {
	// contains filtered or unexported fields
}

APILoggerFactory creates request-scoped loggers for API operations

func NewAPILoggerFactory

func NewAPILoggerFactory(debugEnabled bool, logDir string) *APILoggerFactory

NewAPILoggerFactory creates a new API logger factory If debugEnabled is true, it creates a file-based logger in logDir Otherwise, it uses stdout-only logging

func (*APILoggerFactory) CreateRequestLogger

func (f *APILoggerFactory) CreateRequestLogger(requestID string, debugEnabled bool) *logger.LoggerAdapter

CreateRequestLogger creates a logger scoped to a single API request

func (*APILoggerFactory) GetBaseLogger

func (f *APILoggerFactory) GetBaseLogger() *logger.LoggerAdapter

GetBaseLogger returns the base logger for non-request-scoped operations

func (*APILoggerFactory) GetTemplateLogger

func (f *APILoggerFactory) GetTemplateLogger(templateID string, debugEnabled bool) *logger.LoggerAdapter

GetTemplateLogger creates a logger for a specific template This is useful for generating template-specific log files

Jump to

Keyboard shortcuts

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