er1z / monolog-loki-handler
Monolog handler to publish events directly to Loki
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/er1z/monolog-loki-handler
Requires
- php: ^7.2
- ext-curl: *
- ext-json: *
- monolog/monolog: ^2.0
This package is auto-updated.
Last update: 2025-10-29 03:12:57 UTC
README
Monolog handler to publish events directly to Loki.
examples
See examples directory.
how messages are formatted
- Context variables are parsed to logfmt, eg. logging
messagewith['var'=>'val']will producemessage var=val, any non-scalar values are JSON-encoded, - Labels for Loki are defined by
extrafields.
default labels:
channellevellevel_name