klog

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 11

Documentation

Overview

Package klog provides klog logging.

Index

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

func ErrorS(err error, message string, keysAndValues ...any)

ErrorS means recording error logs.

ex) klog.ErrorS(err, "message-01", "key-01", 1, "key-02", "value-01")

func Errorf

func Errorf(format string, arguments ...any)

Errorf means recording error logs.

ex) klog.Errorf("%s", "message-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 Fatalf

func Fatalf(format string, arguments ...any)

Fatalf means recording fatal logs.

ex) klog.Fatalf("%s", "message-01")

func Fatalln

func Fatalln(arguments ...any)

Fatalln means recording fatal logs.

ex) klog.Fatalln("message-01")

func Flush

func Flush()

Flush flushes all log.

ex) klog.Flush()

func Info

func Info(arguments ...any)

Info means recording info logs.

ex) klog.Info("message-01")

func InfoS

func InfoS(message string, keysAndValues ...any)

InfoS means recording info logs.

ex) klog.InfoS("message-01", "key-01", 1, "key-02", "value-01")

func Infof

func Infof(format string, arguments ...any)

Infof means recording info logs.

ex) klog.Infof("%s", "message-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.

Jump to

Keyboard shortcuts

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