logger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger provides structured logging with multiple severity levels

func Get

func Get() *Logger

Get returns the singleton logger instance

func (*Logger) Critical

func (l *Logger) Critical(format string, v ...interface{})

Critical logs critical-level messages (always logged)

func (*Logger) CustomError

func (l *Logger) CustomError(e *errors.Error)

CustomError logs a structured error based on its severity

func (*Logger) Debug

func (l *Logger) Debug(format string, v ...interface{})

Debug logs debug-level messages

func (*Logger) Error

func (l *Logger) Error(format string, v ...interface{})

Error logs error-level messages

func (*Logger) Info

func (l *Logger) Info(format string, v ...interface{})

Info logs info-level messages

func (*Logger) Trace

func (l *Logger) Trace(format string, v ...interface{})

Trace logs trace-level messages

func (*Logger) Warn

func (l *Logger) Warn(format string, v ...interface{})

Warn logs warning-level messages

Jump to

Keyboard shortcuts

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