Documentation
¶
Overview ¶
Package logger provides structured logging functionality for the application
Index ¶
- func APILogger() fiber.Handler
- func Debug(args ...interface{})
- func DebugWithFields(msg string, fields map[string]interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func ErrorWithFields(msg string, fields map[string]interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func FatalWithFields(msg string, fields map[string]interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func InfoWithFields(msg string, fields map[string]interface{})
- func Infof(format string, args ...interface{})
- func InitializeAndConfigure()
- func Panic(args ...interface{})
- func PanicWithFields(msg string, fields map[string]interface{})
- func Panicf(format string, args ...interface{})
- func Trace(args ...interface{})
- func TraceWithFields(msg string, fields map[string]interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func WarnWithFields(msg string, fields map[string]interface{})
- func Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugWithFields ¶
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 ErrorWithFields ¶
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 FatalWithFields ¶
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 InfoWithFields ¶
InfoWithFields logs a message at the info level with additional fields
func InitializeAndConfigure ¶
func InitializeAndConfigure()
InitializeAndConfigure sets up the logger with the appropriate configuration and log level from environment variables
func PanicWithFields ¶
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 TraceWithFields ¶
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 WarnWithFields ¶
WarnWithFields logs a message at the warn level with additional fields
Types ¶
This section is empty.