logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package logger provides structured logging functionality for Furca.

It implements a singleton logger using the zap logging library, with support for different log levels, structured output, and colorized console logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() *zap.SugaredLogger

GetLogger returns a singleton instance of the logger. It initializes the logger on the first call and returns the same instance on subsequent calls, ensuring that there's only one logger throughout the application. The logger is configured with appropriate encoding, log level, and output settings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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