log

package
v0.0.0-...-0f463f4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug      bool
	Mountpoint string
}

Config contains values necessary for configurating a logger.

type Logger

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

Logger maintains state of log emitters for different severity levels.

func New

func New(component string, config Config) *Logger

New initializes a Logger for a given component and with debugging output on/off.

func (Logger) Close

func (l Logger) Close() error

Close closes any internal writers.

func (Logger) Debugf

func (l Logger) Debugf(format string, v ...interface{})

Debugf emits messages at DEBUG level with a printf style interface if debugging was enabled.

func (Logger) Errorf

func (l Logger) Errorf(format string, v ...interface{})

Errorf emits messages at ERROR level with a printf style interface.

func (Logger) Infof

func (l Logger) Infof(format string, v ...interface{})

Infof emits messages at INFO level with a printf style interface.

func (Logger) Warnf

func (l Logger) Warnf(format string, v ...interface{})

Warnf emits messages at WARN level with a printf style interface.

Jump to

Keyboard shortcuts

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