logger

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

README

internal/logger

Responsibility

  • Provides a centralized logging facility for the application.
  • Uses zerodha/logf for structured logging.
  • Configures logging level and output format.

Scope

  • Logger initialization and configuration.
  • Logging functions for different levels (e.g., Info, Debug, Error).

Test Suite Overview

  • Tests should cover logging output and level configuration.

Decisions & Potential Gotchas

  • Uses zerodha/logf for structured logging.
  • Logging level is configurable via the configuration file.
  • Output format can be customized.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(level string) *logf.Logger

GetLogger returns the singleton instance of the logger.

func Reset

func Reset()

Reset is for testing so that we can reset the logger singleton

Types

This section is empty.

Jump to

Keyboard shortcuts

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