log

package module
v0.0.0-...-58db0af Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2015 License: MIT Imports: 3 Imported by: 0

README

a log wrapper for golang syslog

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(format string, args ...interface{})
	Error(format string, args ...interface{})
	Info(format string, args ...interface{})
	Warning(format string, args ...interface{})
	Notice(format string, args ...interface{})
}

func DialSyslogLogger

func DialSyslogLogger(network, address, tag string, priority Priority) (Logger, error)

func NewStdoutLogger

func NewStdoutLogger(tag string, priority Priority) Logger

func NewSyslogLogger

func NewSyslogLogger(tag string, priority Priority) (Logger, error)

type Priority

type Priority int
const (
	WARNING Priority = iota
	NOTICE
	INFO
	DEBUG
	ERROR
)

type StdoutLogger

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

func (*StdoutLogger) Debug

func (p *StdoutLogger) Debug(format string, args ...interface{})

func (*StdoutLogger) Error

func (p *StdoutLogger) Error(format string, args ...interface{})

func (*StdoutLogger) Info

func (p *StdoutLogger) Info(format string, args ...interface{})

func (*StdoutLogger) Notice

func (p *StdoutLogger) Notice(format string, args ...interface{})

func (*StdoutLogger) Warning

func (p *StdoutLogger) Warning(format string, args ...interface{})

type SyslogLogger

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

func (*SyslogLogger) Debug

func (p *SyslogLogger) Debug(format string, args ...interface{})

func (*SyslogLogger) Error

func (p *SyslogLogger) Error(format string, args ...interface{})

func (*SyslogLogger) Info

func (p *SyslogLogger) Info(format string, args ...interface{})

func (*SyslogLogger) Notice

func (p *SyslogLogger) Notice(format string, args ...interface{})

func (*SyslogLogger) Warning

func (p *SyslogLogger) Warning(format string, args ...interface{})

Jump to

Keyboard shortcuts

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