logger

package
v0.0.0-...-242e768 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Logger *logrus.Logger
}

Log структура логгера.

func NewLogger

func NewLogger(cfg config.LogConf) (*Log, error)

NewLogger конструктор.

func (*Log) Debug

func (l *Log) Debug(args ...interface{})

func (*Log) Error

func (l *Log) Error(args ...interface{})

func (*Log) Errorf

func (l *Log) Errorf(format string, args ...interface{})

func (*Log) GetLevel

func (l *Log) GetLevel() string

func (*Log) Info

func (l *Log) Info(args ...interface{})

func (*Log) Infof

func (l *Log) Infof(format string, args ...interface{})

Jump to

Keyboard shortcuts

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