log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LDEBUG is the logger DEBUG level
	LDEBUG = unilogger.DEBUG

	// LINFO is the logger INFO level
	LINFO = unilogger.INFO

	// LWARNING is the logger WARNING level
	LWARNING = unilogger.WARNING

	// LERROR is the logger ERROR level
	LERROR = unilogger.ERROR

	// LCRITICAL is the logger CRITICAL level
	LCRITICAL = unilogger.CRITICAL

	// LPRINT is the logger PRINT level
	LPRINT = unilogger.PRINT

	// LUNKNOWN is the unspecified logger level
	LUNKNOWN = unilogger.UNKNOWN
)

Functions

func Debug

func Debug(args ...interface{})

Debug writes the debug log

func Debugf

func Debugf(format string, args ...interface{})

Debugf writes the formated debug log

func Default

func Default()

Default creates default logger

func Error

func Error(args ...interface{})

Error writes the error log

func Errorf

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

Errorf writes the formated error log

func Fatal

func Fatal(args ...interface{})

Fatal writes the fatal log

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf writes the formated fatal log

func Info

func Info(args ...interface{})

Info writes the info log

func Infof

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

Infof writes the formated info log

func Logger

func Logger() unilogger.LeveledLogger

Logger returns default logger

func New

func New(out io.Writer, prefix string, flags int)

New creates new logger on the base of the provided values

func Panic

func Panic(args ...interface{})

Panic writes the panic log

func Panicf

func Panicf(format string, args ...interface{})

Panicf writes the formated panic log

func SetLevel

func SetLevel(level unilogger.Level) error

SetLevel sets the level if possible for the logger file

func SetLogger

func SetLogger(log unilogger.LeveledLogger)

SetLogger sets the logger for the provided 'log' logger

func Warning

func Warning(args ...interface{})

Warning writes the warning log

func Warningf

func Warningf(format string, args ...interface{})

Warningf writes the formated warning log

Types

This section is empty.

Jump to

Keyboard shortcuts

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