log

package
v0.0.0-...-240891c Latest Latest
Warning

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

Go to latest
Published: May 11, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error = clog.Error

Error logs to the INFO, WARNING, and ERROR logs. Arguments are handled in the manner of fmt.Print; a newline is appended if missing.

View Source
var ErrorDepth = clog.ErrorDepth

ErrorDepth logs to the INFO, WARNING, and ERROR logs, ofsetting the caller's stack frame by 'depth'

View Source
var Errorf = clog.Errorf

Errorf logs to the INFO, WARNING, and ERROR logs. Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.

View Source
var Errorln = clog.Errorln

Errorln logs to the INFO, WARNING, and ERROR logs. Arguments are handled in the manner of fmt.Println; a newline is appended if missing.

View Source
var Fatal = clog.Fatal

Fatal logs to the INFO, WARNING, ERROR, and FATAL logs, including a stack trace of all running goroutines, then calls os.Exit(255). Arguments are handled in the manner of fmt.Print; a newline is appended if missing.

View Source
var FatalDepth = clog.FatalDepth

FatalDepth logs to the INFO, WARNING, and ERROR, and FATAL logs, ofsetting the caller's stack frame by 'depth', then calls os.Exit(255).

View Source
var Fatalf = clog.Fatalf

Fatalf logs to the INFO, WARNING, ERROR, and FATAL logs, including a stack trace of all running goroutines, then calls os.Exit(255). Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.

View Source
var Fatalln = clog.Fatalln

Fatalln logs to the INFO, WARNING, ERROR, and FATAL logs, including a stack trace of all running goroutines, then calls os.Exit(255). Arguments are handled in the manner of fmt.Println; a newline is appended if missing.

View Source
var Info = clog.Info

Info logs to the INFO log. Arguments are handled in the manner of fmt.Print; a newline is appended if missing.

View Source
var InfoDepth = clog.InfoDepth

InfoDepth logs to the INFO log, ofsetting the caller's stack frame by 'depth'

View Source
var Infof = clog.Infof

Infof logs to the INFO log. Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.

View Source
var Infoln = clog.Infoln

Infoln logs to the INFO log. Arguments are handled in the manner of fmt.Println; a newline is appended if missing.

View Source
var Warning = clog.Warning

Warning logs to the INFO and WARNING logs. Arguments are handled in the manner of fmt.Print; a newline is appended if missing.

View Source
var WarningDepth = clog.WarningDepth

WarningDepth logs to the INFO and WARNING logs, ofsetting the caller's stack frame by 'depth'

View Source
var Warningf = clog.Warningf

Warningf logs to the INFO and WARNING logs. Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.

View Source
var Warningln = clog.Warningln

Warningln logs to the INFO and WARNING logs. Arguments are handled in the manner of fmt.Println; a newline is appended if missing.

Functions

func FatalOnPanic

func FatalOnPanic()

FatalOnPanic recovers from a panic and exits the process with a Fatal log. This is useful for avoiding a panic being caught through a CGo exported function or preventing HTTP handlers from recovering panics and ignoring them.

func V

func V(level clog.Level) bool

V wraps clog.VDepth. See that documentation for details. We can't use clog.V(i).Infof (etc) directly since we want to use the functions defined here.

Types

This section is empty.

Jump to

Keyboard shortcuts

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