package
Version:
v0.0.0-...-15283aa
Opens a new window with list of versions in this module.
Published: Aug 11, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Debug(msg string, args ...KV)
-
func DebugNs(ns string, msg string, args ...KV)
-
func Error(msg string, args ...KV)
-
func ErrorNs(ns string, msg string, args ...KV)
-
func FatalError(msg string, args ...KV)
-
func FatalErrorNs(ns string, msg string, args ...KV)
-
func Info(msg string, args ...KV)
-
func InfoNs(ns string, msg string, args ...KV)
-
func Warn(msg string, args ...KV)
-
func WarnNs(ns string, msg string, args ...KV)
-
type KV
Debug logs a debug message
DebugNs logs a debug message with a namespace
It's for grouping logs consistently
Error logs a error message
ErrorNs logs a error message with a namespace
It's for grouping logs consistently
FatalError is equivalent to Error() followed by a call to os.Exit(1)
FatalErrorNs is equivalent to FatalError() with a namespace
InfoNs logs a info message with a namespace
It's for grouping logs consistently
WarnNs logs a warn message with a namespace
It's for grouping logs consistently
KV is a record of key-value pair to be logged
Source Files
¶
Click to show internal directories.
Click to hide internal directories.