log

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ApplicationLogFile = "logs/application.log"

Relative path (from application root) to file where application log is stored.

Variables

This section is empty.

Functions

func StdErr

func StdErr(pattern string, args ...interface{})

Performs printf() of given pattern with given arguments to OS standard error output stream (stderr).

Types

type Logger

type Logger interface {
	Debug(interface{}, ...interface{})
	Trace(interface{}, ...interface{})
	Info(interface{}, ...interface{})
	Warn(interface{}, ...interface{}) error
	Error(interface{}, ...interface{}) error
	Critical(interface{}, ...interface{}) error
	Close()
}

Represents a logger with different levels of logs.

func NewApplicationLogger

func NewApplicationLogger() (Logger, error)

Creates and returns new application logger, ready for use.

Directories

Path Synopsis
Package log/filelog implements advanced writer to log files for "log4go" package with improved algorithm of log rotation.
Package log/filelog implements advanced writer to log files for "log4go" package with improved algorithm of log rotation.

Jump to

Keyboard shortcuts

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