package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: May 16, 2024
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
Package stlog adds log levels on top of the log facility in the standard library.
func Debug(format string, v ...interface{})
Debug prints debug messages to the currently active logger when permitted
by the log level. Input can be formatted according to fmt.Printf.
func Error(format string, v ...interface{})
Error prints error messages to the currently active logger when permitted
by the log level. Input can be formatted according to fmt.Printf.
func Info(format string, v ...interface{})
Info prints info messages to the currently active logger when permitted
by the log level. Input can be formatted according to fmt.Printf.
SetLevel sets the logging level.
func Warn(format string, v ...interface{})
Warn prints waring messages to the currently active logger when permitted
by the log level. Input can be formatted according to fmt.Printf.
const (
ErrorLevel LogLevel = iota
WarnLevel
InfoLevel
DebugLevel
)
GetLevel return the log level set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.