Documentation
¶
Overview ¶
Package plog provides diagnostic output functions according to the Go standard logger "log" where log messages are prefixed by the invoker's package name and log output can be enabled/disabled programmatically.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fatal ¶
func Fatal(v ...any)
Fatal is equivalent to log.Fatal. In addition, the message is prefixed with the invoker's package name. Output is never discarded even if logging is disabled.
func Fatalf ¶
Fatalf is equivalent to log.Fatalf. In addition, the message is prefixed with the invoker's package name. Output is never discarded even if logging is disabled.
func Fatalln ¶
func Fatalln(v ...any)
Fatalln is equivalent to log.Fatalln. In addition, the message is prefixed with the invoker's package name. Output is never discarded even if logging is disabled.
func Print ¶
func Print(v ...any)
Print is equivalent to log.Print. In addition, the message is prefixed with the invoker's package name. Output is discarded if logging is disabled.
func Printf ¶
Printf is equivalent to log.Printf. In addition, the message is prefixed with the invoker's package name. Output is discarded if logging is disabled.
func Println ¶
func Println(v ...any)
Println is equivalent to log.Println. In addition, the message is prefixed with the invoker's package name. Output is discarded if logging is disabled.
func WithPrefix ¶
WithPrefix creates a *log.Logger with the given message prefix.
Types ¶
This section is empty.