logger

package
v0.0.0-...-749b7a4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsoleLogger

func NewConsoleLogger(path string, maxBytes int64, backupCount int) io.WriteCloser

Types

type LogLevel

type LogLevel syslog.Priority
const (
	LOG_INFO    LogLevel = (LogLevel)(syslog.LOG_INFO)
	LOG_WARNING LogLevel = (LogLevel)(syslog.LOG_WARNING)
	LOG_ERR     LogLevel = (LogLevel)(syslog.LOG_ERR)
)

func (LogLevel) String

func (this LogLevel) String() string

type LogStrategy

type LogStrategy interface {
	Log(level LogLevel, message string)
}

type Logger

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

func NewLogger

func NewLogger(strategy LogStrategy) *Logger

func NewSystemLogger

func NewSystemLogger(dryRun bool) *Logger

func (Logger) Error

func (this Logger) Error(message string)

func (Logger) Info

func (this Logger) Info(message string)

func (Logger) Warn

func (this Logger) Warn(message string)

Jump to

Keyboard shortcuts

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