logger

package
v0.0.0-...-a45123f Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NONE     = factorlog.NONE
	TRACE    = factorlog.TRACE
	DEBUG    = factorlog.DEBUG
	INFO     = factorlog.INFO
	WARN     = factorlog.WARN
	ERROR    = factorlog.ERROR
	CRITICAL = factorlog.CRITICAL
	STACK    = factorlog.STACK
	FATAL    = factorlog.FATAL
	PANIC    = factorlog.PANIC
)

Variables

This section is empty.

Functions

func Get

func Get() *logger

Get returns a cached or new logger

func New

func New() *logger

New returns a new logger

Types

type NoyeFormatter

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

NoyeFormatter is a factorlog formatter that applies the correct function name, line number and filename

func NewNoyeFormatter

func NewNoyeFormatter(depth int) *NoyeFormatter

NewNoyeFormatter returns a new NoyeFormatter

func (*NoyeFormatter) Format

func (n *NoyeFormatter) Format(context factorlog.LogContext) []byte

Format the message and produce a byte slice

func (*NoyeFormatter) ShouldRuntimeCaller

func (n *NoyeFormatter) ShouldRuntimeCaller() bool

ShouldRuntimeCaller tells factorlog to use the runtime caller

type ScriptFormatter

type ScriptFormatter struct {
	*NoyeFormatter
}

func NewScriptFormatter

func NewScriptFormatter() *ScriptFormatter

Jump to

Keyboard shortcuts

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