log

package
Version: v0.0.0-...-87a8fe7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2020 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG  = Level{"DEBUG", 1}
	FINE   = Level{"FINE", 2}
	INFO   = Level{"INFO", 3}
	WARN   = Level{"WARN", 4}
	SEVERE = Level{"SEVERE", 5}
)

Functions

func Debug

func Debug(msg string, args ...interface{})

func Fine

func Fine(msg string, args ...interface{})

func Info

func Info(msg string, args ...interface{})

func SetDefaultLogLevel

func SetDefaultLogLevel(level Level)

func Severe

func Severe(msg string, args ...interface{})

func Warn

func Warn(msg string, args ...interface{})

Types

type Level

type Level struct {
	Name  string
	Level int
}

type Logger

type Logger struct {
	*log.Logger
	Level           Level
	StackTraceLevel Level
}

func New

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

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...interface{})

func (*Logger) Fine

func (l *Logger) Fine(msg string, args ...interface{})

func (*Logger) Info

func (l *Logger) Info(msg string, args ...interface{})

func (*Logger) Log

func (l *Logger) Log(level Level, msg string, args ...interface{})

func (*Logger) PrintStack

func (l *Logger) PrintStack()

func (*Logger) Severe

func (l *Logger) Severe(msg string, args ...interface{})

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...interface{})

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL