PHPackages                             noxdk/monolog-journal-handler - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. noxdk/monolog-journal-handler

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

noxdk/monolog-journal-handler
=============================

Monolog handler for journald (systemd) written in pure PHP

1.0.4(1y ago)010.3k↑53.1%1MITPHPPHP &gt;=8.1

Since Nov 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/noxdk/monolog-journal-handler)[ Packagist](https://packagist.org/packages/noxdk/monolog-journal-handler)[ RSS](/packages/noxdk-monolog-journal-handler/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

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
--------

[](#features)

- Support for custom tags (using monolog context/extra fields)
- Multiline log support
- Exception file and line log tags

Installation
------------

[](#installation)

Install with composer: `composer require noxdk/monolog-journal-handler`

Configuration arguments
-----------------------

[](#configuration-arguments)

ArgumentDescriptionDefault 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
--------

[](#examples)

Simple log entry:

```
