logger

package
v0.0.0-...-5d3ae98 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: Apache-2.0 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 wraps zerolog.Logger

func New

func New(development bool) *Logger

New creates a new logger instance

func (*Logger) DebugFields

func (l *Logger) DebugFields(msg string, fields map[string]interface{})

DebugFields logs a debug message with fields

func (*Logger) ErrorFields

func (l *Logger) ErrorFields(msg string, fields map[string]interface{})

ErrorFields logs an error message with fields

func (*Logger) FatalFields

func (l *Logger) FatalFields(msg string, fields map[string]interface{})

FatalFields logs a fatal message with fields and exits

func (*Logger) GetZerolog

func (l *Logger) GetZerolog() *zerolog.Logger

GetZerolog returns the underlying zerolog.Logger

func (*Logger) InfoFields

func (l *Logger) InfoFields(msg string, fields map[string]interface{})

InfoFields logs an info message with fields

func (*Logger) SetGlobal

func (l *Logger) SetGlobal()

SetGlobal sets the logger as the global logger

func (*Logger) WarnFields

func (l *Logger) WarnFields(msg string, fields map[string]interface{})

WarnFields logs a warning message with fields

func (*Logger) With

func (l *Logger) With() zerolog.Context

With creates a child logger with additional context

Jump to

Keyboard shortcuts

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