lg

package
v0.0.0-...-5c4a795 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: GPL-3.0 Imports: 3 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Color bool = true

Do not print date, but print file name and line

Functions

func Debug

func Debug(params ...interface{})

func Debugf

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

func Error

func Error(params ...interface{})

func Errorf

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

func Failure

func Failure(params ...interface{})

Failure behaves as all other logging functions, then panics with the given parameters

func Failuref

func Failuref(format string, params ...interface{})

Failuref behaves as all other logging functions, then panics with the given parameters

func Info

func Info(params ...interface{})

func Infof

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

func SetFlags

func SetFlags(flag int)

func Warn

func Warn(params ...interface{})

func Warnf

func Warnf(format string, params ...interface{})

Types

type LogLevel

type LogLevel uint
const (
	Level_Debug LogLevel = iota
	Level_Info
	Level_Warn
	Level_Error
	Level_Failure
)
var CurLevel LogLevel

Curlevel represents the level of logging below which no log will be printed. The maximum available is LeveL_Failure, which will only print critical errors. The default is the lowest one, Level_Debug, which will print everything. The higher the loglevel, the lower the verbosity

func (LogLevel) ShortString

func (ll LogLevel) ShortString(color bool) string

func (LogLevel) String

func (ll LogLevel) String() string

Jump to

Keyboard shortcuts

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