logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 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 Interface

type Interface interface {
	Debug(message interface{}, args ...interface{})
	Info(message string, args ...interface{})
	Warn(message string, args ...interface{})
	Error(message interface{}, args ...interface{})
	Fatal(message interface{}, args ...interface{})
}

Interface - Logger interface

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger - Structure for logger, used zerolog for logging

func New

func New(level string) *Logger

New - Creates new logger

func (*Logger) Debug

func (l *Logger) Debug(message interface{}, args ...interface{})

Debug - Debug log

func (*Logger) Error

func (l *Logger) Error(message interface{}, args ...interface{})

Error - Error log

func (*Logger) Fatal

func (l *Logger) Fatal(message interface{}, args ...interface{})

Fatal - Fatal error log

func (*Logger) Info

func (l *Logger) Info(message string, args ...interface{})

Info - Information log

func (*Logger) Warn

func (l *Logger) Warn(message string, args ...interface{})

Warn - Warning log

Jump to

Keyboard shortcuts

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