logger

package
Version: v0.0.0-...-9a89ba0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0 Imports: 5 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
)

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{})

Source Files

Jump to

Keyboard shortcuts

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