Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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.
var ErrorDepth = clog.ErrorDepth
ErrorDepth logs to the INFO, WARNING, and ERROR logs, ofsetting the caller's stack frame by 'depth'
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.
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.
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.
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).
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.
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.
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.
var InfoDepth = clog.InfoDepth
InfoDepth logs to the INFO log, ofsetting the caller's stack frame by 'depth'
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.
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.
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.
var WarningDepth = clog.WarningDepth
WarningDepth logs to the INFO and WARNING logs, ofsetting the caller's stack frame by 'depth'
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.
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.
Types ¶
This section is empty.