github.com/mfmayer/logthing (go): 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 or SERVICE_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)
Keywords: azure|azure-monitor|elasticsearch|log|logger|logging|logwriter