package
Version:
v0.6.3
Opens a new window with list of versions in this module.
Published: May 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
package logging initializes the root logger and provides some helpers.
Go wraps a value so it will be printed in Go %#v style if logged.
func Init(verbosity *int)
Init sets verbosity based on flag and environment. Sets the flag to actual setting.
JSON wraps a value so it will be printed as JSON if logged.
JSONString returns the JSON marshaled string from v, or the error message if marshal fails
Log returns the root logger.
LogWriter returns the destination for the root logger, so other logs can be directed to it.
Log url slices properly, url.URL only has a pointer-receiver String() method.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.