logger

package
v0.0.0-...-824ed62 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 3 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 represents logger.

func New

func New(logLevel string) (*Logger, error)

New initialize logger.

func (*Logger) Debugf

func (l *Logger) Debugf(msg string, val ...any)

func (*Logger) Debugw

func (l *Logger) Debugw(msg string, val ...any)

func (*Logger) Errorf

func (l *Logger) Errorf(msg string, val ...any)

Methods above will implement all needful logging behavior.

func (*Logger) Errorw

func (l *Logger) Errorw(msg string, val ...any)

func (*Logger) Flush

func (l *Logger) Flush()

Flush will flush any buffered log entries.

func (*Logger) Infof

func (l *Logger) Infof(msg string, val ...any)

func (*Logger) Infow

func (l *Logger) Infow(msg string, val ...any)

func (*Logger) Warnf

func (l *Logger) Warnf(msg string, val ...any)

func (*Logger) Warnw

func (l *Logger) Warnw(msg string, val ...any)

Jump to

Keyboard shortcuts

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