dlog

package module
v0.0.0-...-d2c122c Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2017 License: MIT Imports: 8 Imported by: 0

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
View Source
var SentryLevel int64 = ERROR

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 InfoC

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

func Panic

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

func Println

func Println(v ...interface{})

func SetSentry

func SetSentry(DSN string, level int64)

func SetWriter

func SetWriter(writer io.Writer)

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