logging

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_LEVEL_SILENT = iota
	LOG_LEVEL_ERROR
	LOG_LEVEL_INFO
	LOG_LEVEL_DEBUG
)

Variables

View Source
var BlackholeBackend blackholeBackend
View Source
var DebugLog *log.Logger
View Source
var ErrorLog *log.Logger

Functions

func CreateStdioBackend

func CreateStdioBackend(prefix string) stdioBackend

func CreateSyslogBackend

func CreateSyslogBackend(prefix string) (*syslogBackend, error)

func Start

func Start(backend LoggingBackend, level uint)

Types

type LoggingBackend

type LoggingBackend interface {
	ErrorWriter() io.Writer

	InfoWriter() io.Writer

	DebugWriter() io.Writer

	Prefix() string

	Flags() int
}

Jump to

Keyboard shortcuts

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