dlog

package module
v0.0.0-...-53e591e Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2015 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (
	FATAL = 0
	PANIC = 1
	ERROR = 2
	WARN  = 3
	INFO  = 4
	DEBUG = 5
)

Variables

View Source
var Level int64 = INFO

Functions

func Debug

func Debug(format string, v ...interface{})

func Error

func Error(format string, v ...interface{})

func ErrorN

func ErrorN(n int, format string, v ...interface{})

func Fatal

func Fatal(format string, v ...interface{})

func Fatalln

func Fatalln(v ...interface{})

func Info

func Info(format string, v ...interface{})

func Panic

func Panic(format string, v ...interface{})

func Println

func Println(v ...interface{})

func Warn

func Warn(format string, v ...interface{})

Types

type Logger

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

func New

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

func (*Logger) Output

func (l *Logger) Output(calldepth int, s string) error

Jump to

Keyboard shortcuts

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