log

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package log exposes the central logger used by rsc and all its sub-packages. The default behavior in application mode consists of logging messages with severity crit or error to Stderr. The default behavior in library mode consists of not logging anything. The Logger variable can be used to set the logger behavior, for example by changing its handler. See https://godoc.org/github.com/inconshreveable/log15 for a list of available handlers.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger is the main rsc logger. Configure its handler as appropriate.
	Logger log15.Logger
)

Functions

func Crit

func Crit(msg string, ctx ...interface{})

func Debug

func Debug(msg string, ctx ...interface{})

Log a message at the given level with context key/value pairs

func Error

func Error(msg string, ctx ...interface{})

func Info

func Info(msg string, ctx ...interface{})

func Interactive

func Interactive()

Interactive configures the logger to log messages of level Info or higher to Stdout and messages of level Error or lesser to Stderr.

func Warn

func Warn(msg string, ctx ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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