logger

package
v0.8.13 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 4 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

func New

func New(development bool, level string, encoding string) (*Logger, error)

New creates a new logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, keysAndValues ...interface{})

Debug logs a debug message

func (*Logger) Error

func (l *Logger) Error(msg string, err error, keysAndValues ...interface{})

Error logs an error message

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, err error, keysAndValues ...interface{})

Fatal logs a fatal message and exits

func (*Logger) Info

func (l *Logger) Info(msg string, keysAndValues ...interface{})

Info logs an info message

func (*Logger) Sync

func (l *Logger) Sync() error

Sync flushes any buffered log entries

func (*Logger) Warn

func (l *Logger) Warn(msg string, keysAndValues ...interface{})

Warn logs a warning message

func (*Logger) With

func (l *Logger) With(keysAndValues ...interface{}) interfaces.LoggerInterface

With returns a logger with additional fields

Jump to

Keyboard shortcuts

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