Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.8% on proxy.golang.org
Top 7.0% forks on proxy.golang.org

proxy.golang.org : github.com/mfmayer/logthing

Package logthing implements structured logging and log dispatching functions to write and store logs and metrics in cloud servcies like azure monitor (azure log analytics) and elasticsearch. By implementing additional LogWriters (see LogWriter interface) it can be extended to log to additional log stores. Besides logging to cloud services, logthing also supports to write logs to stdout and stderr simultaneously. The following environemnt variables can be used to configure the behaviour: LOGTHING_LOG_NAME - Log name under which log messages are stored (will be used as elasticsearch index or azure custom log type) LOGTHING_LOG_MAX_SEVERITY - Messages with severity > LOGTHING_LOG_MAX_SEVERITY won't be logged or printed at all and are immediately dropped LOGTHING_PRINT_MAX_SEVERITY - Messages with severity <= LOGTHING_PRINT_MAX_SEVERITY are are also printed to stdout / stderr LOGTHING_WHITELIST_LOG_TYPES - Messages that match any whitelisted log type (comma separated) are logged independently of their severity LOGTHING_PRINT_PROPERTIES - Message properties that match any give print property (comma separated) are printed with the message output Note: Severity increases with lower values (SeverityEmergency: 0 ... SeverityTrace: 7)

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mfmayer/logthing
Keywords: azure, azure-monitor, elasticsearch, log, logger, logging, logwriter
License: MIT
Latest release: 5 months ago
First release: over 3 years ago
Namespace: github.com/mfmayer
Stars: 2 on GitHub
Forks: 2 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 25 days ago

    Loading...
    Readme
    Loading...