logger

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logger provides structured logging functionality for the application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APILogger

func APILogger() fiber.Handler

APILogger returns a loggerthat logs HTTP requests

func Debug

func Debug(args ...interface{})

Debug logs a message at the debug level

func DebugWithFields

func DebugWithFields(msg string, fields map[string]interface{})

DebugWithFields logs a message at the debug level with additional fields

func Debugf

func Debugf(format string, args ...interface{})

Debugf logs a message at the Debugf level

func Error

func Error(args ...interface{})

Error logs a message at the Error level

func ErrorWithFields

func ErrorWithFields(msg string, fields map[string]interface{})

ErrorWithFields logs a message at the error level with additional fields

func Errorf

func Errorf(format string, args ...interface{})

Errorf logs a message at the Errorf level

func Fatal

func Fatal(args ...interface{})

Fatal logs a message at the Fatal level

func FatalWithFields

func FatalWithFields(msg string, fields map[string]interface{})

FatalWithFields logs a message at the fatal level with additional fields

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs a message at the Fatalf level

func Info

func Info(args ...interface{})

Info logs a message at the Info level

func InfoWithFields

func InfoWithFields(msg string, fields map[string]interface{})

InfoWithFields logs a message at the info level with additional fields

func Infof

func Infof(format string, args ...interface{})

Infof logs a message at the Infof level

func InitializeAndConfigure

func InitializeAndConfigure()

InitializeAndConfigure sets up the logger with the appropriate configuration and log level from environment variables

func Panic

func Panic(args ...interface{})

Panic logs a message at the Panic level

func PanicWithFields

func PanicWithFields(msg string, fields map[string]interface{})

PanicWithFields logs a message at the panic level with additional fields

func Panicf

func Panicf(format string, args ...interface{})

Panicf logs a message at the Panicf level

func Trace

func Trace(args ...interface{})

Trace logs a message at the Trace level

func TraceWithFields

func TraceWithFields(msg string, fields map[string]interface{})

TraceWithFields logs a message at the trace level with additional fields

func Tracef

func Tracef(format string, args ...interface{})

Tracef logs a message at the TraceF level

func Warn

func Warn(args ...interface{})

Warn logs a message at the Warn level

func WarnWithFields

func WarnWithFields(msg string, fields map[string]interface{})

WarnWithFields logs a message at the warn level with additional fields

func Warnf

func Warnf(format string, args ...interface{})

Warnf logs a message at the Warnf level

Types

This section is empty.

Jump to

Keyboard shortcuts

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