Discover Packages
github.com/thalesfsp/dal
internal
logging
package
Version:
v0.2.16
Opens a new window with list of versions in this module.
Published: Nov 17, 2024
License: MIT
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
Documentation
¶
Package logging provides the application logger. It applies the singleton
pattern. To get the logger, use the `Get` function. Child loggers can be
created by calling `logger.New`.
ToAPM adds the required APM fields enabling log correlation.
NOTE: It expects the `apm.Transaction` to be in the context.
Logger is the application logger.
Get returns a setup logger, or set it up. Default level is `ERROR`.
All messages will be directed to StdOut unless in case of ERROR level, which
will be directed to StdErr.
NOTE: Use `SYPL_LEVEL` env var to overwrite the max level.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.