Discover Packages
github.com/mgtv-tech/jetcache-go
logger
package
Version:
v1.1.5
Opens a new window with list of versions in this module.
Published: Sep 11, 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
Documentation
¶
Debug calls the default logger's Debug method.
Error calls the default logger's Error method.
Info calls the default logger's Info method.
func SetDefaultLogger(l Logger )
SetDefaultLogger sets the default logger.
This is not concurrency safe, which means it should only be called during init.
SetLevel sets the level of logs below which logs will not be output.
The default log level is LevelDebug.
Warn calls the default logger's Warn method.
Level defines the priority of a log message.
When a logger is configured with a level, any log message with a lower
log level (smaller by integer comparison) will not be output.
const (
LevelDebug Level = iota
LevelInfo
LevelWarn
LevelError
)
The levels of logs.
Logger is a logger anyhat provides logging function with levels.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.