logger

package
v0.0.0-...-8605621 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int
const (
	LevelDebug LogLevel = iota
	LevelInfo
	LevelWarn
	LevelError
	LevelNone LogLevel = 99
)

func Levelify

func Levelify(levelString string) (LogLevel, error)

type Logger

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

func NewLogger

func NewLogger(level LogLevel) Logger

func NewWriterLogger

func NewWriterLogger(level LogLevel, out, err io.Writer) Logger

func (Logger) Debug

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

func (Logger) DebugWithDetails

func (l Logger) DebugWithDetails(tag, msg string, args ...interface{})

DebugWithDetails will automatically change the format of the message to insert a block of text after the log

func (Logger) Error

func (l Logger) Error(tag, msg string, args ...interface{})

func (Logger) ErrorWithDetails

func (l Logger) ErrorWithDetails(tag, msg string, args ...interface{})

ErrorWithDetails will automatically change the format of the message to insert a block of text after the log

func (Logger) HandlePanic

func (l Logger) HandlePanic(tag string)

func (Logger) Info

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

func (Logger) Warn

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

Jump to

Keyboard shortcuts

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