log

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	LogOffLevel   LogLevel = 0 // Off log
	LogErrorLevel LogLevel = 1 // Errors should be properly handled
	LogWarnLevel  LogLevel = 2 // Info could be ignored; messages might need noticed
	LogInfoLevel  LogLevel = 3 // Informational messages
	LogDebugLevel LogLevel = 4 // Debug messages
)

type Logger

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

func NewLogger

func NewLogger(logLevel string) *Logger

func (Logger) Debug

func (l Logger) Debug(args ...interface{})

func (Logger) Error

func (l Logger) Error(args ...interface{})

func (Logger) Info

func (l Logger) Info(args ...interface{})

func (Logger) Warn

func (l Logger) Warn(args ...interface{})

Jump to

Keyboard shortcuts

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