Download the PHP package noxdk/monolog-journal-handler without Composer
On this page you can find all versions of the php package noxdk/monolog-journal-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download noxdk/monolog-journal-handler
More information about noxdk/monolog-journal-handler
Files in noxdk/monolog-journal-handler
Download noxdk/monolog-journal-handler
More information about noxdk/monolog-journal-handler
Files in noxdk/monolog-journal-handler
Vendor noxdk
Package monolog-journal-handler
Short Description Monolog handler for journald (systemd) written in pure PHP
License MIT
Package monolog-journal-handler
Short Description Monolog handler for journald (systemd) written in pure PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package monolog-journal-handler
monolog-journal-handler
Monolog handler for journald (systemd). This package does not depend on a systemd PHP extension.
Logs are being written directly to the journald socket. It uses LineFormatter
for message formatting, but with a modified format, in order to remove timestamp from the message.
The formatter can be changed with $handler->setFormatter();
Features
- Support for custom tags (using monolog context/extra fields)
- Multiline log support
- Exception file and line log tags
Installation
Install with composer: composer require noxdk/monolog-journal-handler
Configuration arguments
Argument | Description | Default value |
---|---|---|
$path |
The path to the journald socket | /run/systemd/journal/socket |
$level |
The minimum logging level at which this handler will be triggered | Level::DEBUG |
$bubble |
Whether the messages that are handled can bubble up the stack or not | true |
Examples
Simple log entry:
\ Multiple lines:
\ Custom tags (journal entry as trimmed json output):
\ Exception log:
All versions of monolog-journal-handler with dependencies
PHP Build Version
Package Version
The package noxdk/monolog-journal-handler contains the following files
Loading the files please wait ....