logger

package
v0.33.4 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 2 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 {
	Messages chan string
	// contains filtered or unexported fields
}

Logger is the custom app logger.

func NewLogger

func NewLogger(bindToChannel bool, messages chan string) *Logger

NewLogger returns a logger instance

func (*Logger) Debug

func (logger *Logger) Debug(msg string)

Debug logs debug level log.

func (*Logger) Error

func (logger *Logger) Error(msg string)

Error logs error level log.

func (*Logger) Info

func (logger *Logger) Info(msg string)

Info logs info level log.

func (*Logger) SetLevel

func (logger *Logger) SetLevel(level logrus.Level)

SetLevel set logger level.

func (*Logger) Warning

func (logger *Logger) Warning(msg string)

Warning logs Warning level log.

Jump to

Keyboard shortcuts

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