logging

package
v0.0.0-...-b15666a Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEntry

func NewEntry(mode Mode)

Types

type Logger

type Logger struct {
	*logrus.Entry
}

func GetLogger

func GetLogger() Logger

Before calling this, need call NewEntry for entry initializing

func GetNullLogger

func GetNullLogger() Logger

func (*Logger) GetLoggerWithField

func (l *Logger) GetLoggerWithField(k string, v interface{}) Logger

type Mode

type Mode int
const (
	Test Mode = iota
	FileOutput
	ConsoleOutput
	FileAndConsoleOutput
)

Jump to

Keyboard shortcuts

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