logger

package
v0.0.0-...-f03aceb Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Filename string `json:"filename"`
	Level    string `json:"level"`
}

Config represents configuration details for logging.

type Logger

type Logger struct {
	Provider zerolog.Logger
}

Logger is the main logger that is abstracted in this package.

func GetFallBackLogger

func GetFallBackLogger() *Logger

GetFallBackLogger returns the fallback logger.

func NewLogger

func NewLogger(config *Config) (*Logger, error)

func (*Logger) Debug

func (l *Logger) Debug(msg string)

func (*Logger) Error

func (l *Logger) Error(msg string, err error)

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, err error)

func (*Logger) Info

func (l *Logger) Info(msg string)

func (*Logger) Warn

func (l *Logger) Warn(msg string, err error)

Jump to

Keyboard shortcuts

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