Discover Packages
github.com/guacsec/guac
pkg
logging
package
Version:
v0.8.8
Opens a new window with list of versions in this module.
Published: Sep 26, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Initializes the logger with the input level, defaulting to Info if the input is invalid
SetLoggerForTest allows temporarily replacing the global logger for testing purposes.
It registers a cleanup function with the testing.T instance to revert the logger.
Attaches the logger to the input context, optionally adding a number of fields
to the logging context. The fields should be key-value pairs.
convert a string to the LogLevel type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.