Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Error = glog.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.
var ErrorDepth = glog.ErrorDepth
ErrorDepth logs to the INFO, WARNING, and ERROR logs, ofsetting the caller's stack frame by 'depth'
var Errorf = glog.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.
var Errorln = glog.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.
var Fatal = glog.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.
var FatalDepth = glog.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).
var Fatalf = glog.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.
var Fatalln = glog.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.
var Info = glog.Info
Info logs to the INFO log. Arguments are handled in the manner of fmt.Print; a newline is appended if missing.
var InfoDepth = glog.InfoDepth
InfoDepth logs to the INFO log, ofsetting the caller's stack frame by 'depth'
var Infof = glog.Infof
Infof logs to the INFO log. Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
var Infoln = glog.Infoln
Infoln logs to the INFO log. Arguments are handled in the manner of fmt.Println; a newline is appended if missing.
var V = glog.V
V wraps glog.V. See that documentation for details.
var Warning = glog.Warning
Warning logs to the INFO and WARNING logs. Arguments are handled in the manner of fmt.Print; a newline is appended if missing.
var WarningDepth = glog.WarningDepth
WarningDepth logs to the INFO and WARNING logs, ofsetting the caller's stack frame by 'depth'
var Warningf = glog.Warningf
Warningf logs to the INFO and WARNING logs. Arguments are handled in the manner of fmt.Printf; a newline is appended if missing.
var Warningln = glog.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.
Types ¶
This section is empty.