package jwalterweatherman
import "github.com/theupdateframework/notary/Godeps/_workspace/src/github.com/spf13/jwalterweatherman"
Index ¶
- Variables
- func DiscardLogging()
- func SetLogFile(path string)
- func SetLogThreshold(level Level)
- func SetStdoutThreshold(level Level)
- func UseTempLogFile(prefix string)
- type Feedback
- func (fb *Feedback) Printf(format string, v ...interface{})
- func (fb *Feedback) Println(v ...interface{})
- type Level
- type NotePad
Variables ¶
var ( TRACE *log.Logger DEBUG *log.Logger INFO *log.Logger WARN *log.Logger ERROR *log.Logger CRITICAL *log.Logger FATAL *log.Logger LOG *log.Logger FEEDBACK Feedback LogHandle io.Writer = ioutil.Discard OutHandle io.Writer = os.Stdout BothHandle io.Writer = io.MultiWriter(LogHandle, OutHandle) NotePads []*NotePad = []*NotePad{trace, debug, info, warn, err, critical, fatal} )
Functions ¶
func DiscardLogging ¶
func DiscardLogging()
Disables logging for the entire JWW system
func SetLogFile ¶
func SetLogFile(path string)
Conveniently Sets the Log Handle to a io.writer created for the file behind the given filepath Will only append to this file
func SetLogThreshold ¶
func SetLogThreshold(level Level)
Establishes a threshold where anything matching or above will be logged
func SetStdoutThreshold ¶
func SetStdoutThreshold(level Level)
Establishes a threshold where anything matching or above will be output
func UseTempLogFile ¶
func UseTempLogFile(prefix string)
Conveniently Creates a temporary file and sets the Log Handle to a io.writer created for it
Types ¶
type Feedback ¶
type Feedback struct{}
Feedback is special. It writes plainly to the output while logging with the standard extra information (date, file, etc) Only Println and Printf are currently provided for this
func (*Feedback) Printf ¶
Feedback is special. It writes plainly to the output while logging with the standard extra information (date, file, etc) Only Println and Printf are currently provided for this
func (*Feedback) Println ¶
func (fb *Feedback) Println(v ...interface{})
Feedback is special. It writes plainly to the output while logging with the standard extra information (date, file, etc) Only Println and Printf are currently provided for this
type Level ¶
type Level int
Level describes the chosen log level between debug and critical.
const ( LevelTrace Level = iota LevelDebug LevelInfo LevelWarn LevelError LevelCritical LevelFatal DefaultLogThreshold = LevelWarn DefaultStdoutThreshold = LevelError )
func LogThreshold ¶
func LogThreshold() Level
Level returns the current global log threshold.
func StdoutThreshold ¶
func StdoutThreshold() Level
Level returns the current global output threshold.
type NotePad ¶
Source Files ¶
thatswhyyoualwaysleaveanote.go
- Version
- v0.2.0
- Published
- Feb 25, 2016
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 1 day ago –
Tools for package owners.