Documentation

Index

Constants

View Source
const (
	StdColorDebug = 33
	StdColorInfo  = 32
	StdColorEmerg = 31
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LogWriter

type LogWriter interface {
	Debug(message string) error
	Info(message string) error
	Emerg(message string) error
}

type Logger

type Logger struct {
	Syslog bool
	Debug  bool
	Color  bool
	// contains filtered or unexported fields
}
var Log *Logger = &Logger{}

func (*Logger) Debugf

func (logger *Logger) Debugf(format string, values ...interface{})

func (*Logger) Panicf

func (logger *Logger) Panicf(format string, values ...interface{})

func (*Logger) Printf

func (logger *Logger) Printf(format string, values ...interface{})

func (*Logger) Writer

func (logger *Logger) Writer() LogWriter

type StdWriter

type StdWriter struct {
	Out   io.Writer
	Color bool
}

func (*StdWriter) Debug

func (writer *StdWriter) Debug(message string) error

func (*StdWriter) Emerg

func (writer *StdWriter) Emerg(message string) error

func (*StdWriter) Info

func (writer *StdWriter) Info(message string) error

Source Files