Discover Packages
github.com/quasarch/node
util
ctxlog
package
Version:
v0.0.0-...-b3a6efc
Opens a new window with list of versions in this module.
Published: Jan 23, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Logger get logger from the context.
By default it uses "log" key. use WithLogName("<custom name>") to set custom key
If logger not found dummyLogger is returned
WithLogger add logger object to the context
key defaults to the "log"
use WithLogName("<custom name>") to set custom key
type LogOption func(*options) error
WithLogName set custom name of the log object
Source Files
¶
Click to show internal directories.
Click to hide internal directories.