Back to godoc.org

Package logger

v0.0.0 (f2cd14d)
Latest Go to latest
Published: Apr 22, 2016 | License: GPL3 | Module: github.com/cyanly/gotrade

Index

Package Files

func Debug

func Debug(msg string)

Debug level message.

func Debugf

func Debugf(msg string, v ...interface{})

Debugf level formatted message.

func Discard

func Discard()

Discard all log entries, for benchmarking purposes

func Error

func Error(msg string)

Error level message.

func Errorf

func Errorf(msg string, v ...interface{})

Errorf level formatted message.

func Fatal

func Fatal(msg string)

Fatal level message, followed by an exit.

func Fatalf

func Fatalf(msg string, v ...interface{})

Fatalf level formatted message, followed by an exit.

func Info

func Info(msg string)

Info level message.

func Infof

func Infof(msg string, v ...interface{})

Infof level formatted message.

func Trace

func Trace(msg string) *apexlog.Entry

Trace returns a new entry with a Stop method to fire off a corresponding completion log, useful with defer.

func Warn

func Warn(msg string)

Warn level message.

func Warnf

func Warnf(msg string, v ...interface{})

Warnf level formatted message.

func WithError

func WithError(err error) *apexlog.Entry

WithError returns a new entry with the "error" set to `err`.

func WithField

func WithField(key string, value interface{}) *apexlog.Entry

WithField returns a new entry with the `key` and `value` set.

type Fields

type Fields map[string]interface{}

Fields represents a map of entry level data used for structured logging.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier