log

package
v0.0.0-...-740dce8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	SyslogWriter *syslog.Writer
	// contains filtered or unexported fields
}

Logger provides a syslog logger

func NewLogger

func NewLogger(network, addr string, level int, clk clock.Clock) *Logger

NewLogger creates a new Logger

func (*Logger) Alert

func (log *Logger) Alert(msg string, args ...interface{})

Alert logs at the alert level

func (*Logger) Crit

func (log *Logger) Crit(msg string, args ...interface{})

Crit logs at the crit level

func (*Logger) Debug

func (log *Logger) Debug(msg string, args ...interface{})

Debug logs at the debug level

func (*Logger) Emerg

func (log *Logger) Emerg(msg string, args ...interface{})

Emerg logs at the emergency level

func (*Logger) Err

func (log *Logger) Err(msg string, args ...interface{})

Err logs at the error level

func (*Logger) Info

func (log *Logger) Info(msg string, args ...interface{})

Info logs at the info level

func (*Logger) Notice

func (log *Logger) Notice(msg string, args ...interface{})

Notice logs at the notice level

func (*Logger) Warning

func (log *Logger) Warning(msg string, args ...interface{})

Warning logs at the warning level

type ResponderLogger

type ResponderLogger struct {
	Log *Logger
}

ResponderLogger wraps a Logger for the CFSSL responder interface

func (*ResponderLogger) Alert

func (rl *ResponderLogger) Alert(msg string) error

Alert logs at the alert level

func (*ResponderLogger) Crit

func (rl *ResponderLogger) Crit(msg string) error

Crit logs at the crit level

func (*ResponderLogger) Debug

func (rl *ResponderLogger) Debug(msg string) error

Debug logs at the debug level

func (*ResponderLogger) Emerg

func (rl *ResponderLogger) Emerg(msg string) error

Emerg logs at the emergency level

func (*ResponderLogger) Err

func (rl *ResponderLogger) Err(msg string) error

Err logs at the error level

func (*ResponderLogger) Info

func (rl *ResponderLogger) Info(msg string) error

Info logs at the info level

func (*ResponderLogger) Notice

func (rl *ResponderLogger) Notice(msg string) error

Notice logs at the notice level

func (*ResponderLogger) Warning

func (rl *ResponderLogger) Warning(msg string) error

Warning logs at the warning level

Jump to

Keyboard shortcuts

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