logging

package
v0.0.0-...-b0e10ae Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = log.New()

Log is the default log instance for all SIFT logs. Logs are disabled by default; use SetLevelStr to set log levels for all packages, or Log.SetHandler() to set a custom handler. (see: https://godoc.org/gopkg.in/inconshreveable/log15.v2)

Functions

func FuncAndLineHandler

func FuncAndLineHandler(h log.Handler, lvl log.Lvl) log.Handler

FuncAndLineHandler creates a log handler that adds the calling function's name and line number as context.

func SetLevelStr

func SetLevelStr(lvlstr string)

SetLevelStr sets the log level of the default logger, using the default log handler. Possible values include "off", "debug", "info", "warn", "error" and "crit"

Types

This section is empty.

Jump to

Keyboard shortcuts

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