Documentation
¶
Overview ¶
Package klog provides klog logging.
Index ¶
- func Error(arguments ...any)
- func ErrorS(err error, message string, keysAndValues ...any)
- func Errorf(format string, arguments ...any)
- func Errorln(arguments ...any)
- func Fatal(arguments ...any)
- func Fatalf(format string, arguments ...any)
- func Fatalln(arguments ...any)
- func Flush()
- func Info(arguments ...any)
- func InfoS(message string, keysAndValues ...any)
- func Infof(format string, arguments ...any)
- func Infoln(arguments ...any)
- func SetWithCallerInfo(with bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶
func Error(arguments ...any)
Error means recording error logs.
ex) klog.Error("message-01")
func ErrorS ¶
ErrorS means recording error logs.
ex) klog.ErrorS(err, "message-01", "key-01", 1, "key-02", "value-01")
func Errorln ¶
func Errorln(arguments ...any)
Errorln means recording error logs.
ex) klog.Errorln("message-01")
func Fatal ¶
func Fatal(arguments ...any)
Fatal means recording fatal logs.
ex) klog.Fatal("message-01")
func Fatalln ¶
func Fatalln(arguments ...any)
Fatalln means recording fatal logs.
ex) klog.Fatalln("message-01")
func InfoS ¶
InfoS means recording info logs.
ex) klog.InfoS("message-01", "key-01", 1, "key-02", "value-01")
func Infoln ¶
func Infoln(arguments ...any)
Infoln means recording info logs.
ex) klog.Infoln("message-01")
func SetWithCallerInfo ¶
func SetWithCallerInfo(with bool)
SetWithCallerInfo also records caller information.
ex) klog.SetWithCallerInfo(true)
Types ¶
This section is empty.