logger

package
v0.0.0-...-3ab8725 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG = iota
	INFO
	SUCC
	WARN
	FAIL
)

These are debug levels

Variables

View Source
var Log = Logger{
	LogLevel: 0,
	Name:     "",
}

Log is the default logger

Functions

This section is empty.

Types

type Logger

type Logger struct {
	LogLevel int
	Name     string
}

Logger represents a logger

func (Logger) Debugln

func (lg Logger) Debugln(args ...interface{})

Debugln is the shortcut for debugging.

func (Logger) FailLn

func (lg Logger) FailLn(args ...interface{})

FailLn is the shortcut

func (Logger) Infoln

func (lg Logger) Infoln(args ...interface{})

Infoln is the shortcut

func (Logger) Logln

func (lg Logger) Logln(level int, levelname string, args ...interface{})

Logln is the log liner

func (Logger) Succln

func (lg Logger) Succln(args ...interface{})

Succln is the shortcut

func (Logger) Warnln

func (lg Logger) Warnln(args ...interface{})

Warnln is the shortcut

Jump to

Keyboard shortcuts

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