Discover Packages
pkg.akt.dev/go
util
ctxlog
package
Version:
v0.0.2-rc1
Opens a new window with list of versions in this module.
Published: Sep 9, 2024
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.