https://github.com/arnested/psr3-journald
PHP PSR-3 logging to `systemd`s `journald`
https://github.com/arnested/psr3-journald
experimental ffi hacktoberfest journald logger php psr-3 psr3 systemd
Last synced: 11 months ago
JSON representation
PHP PSR-3 logging to `systemd`s `journald`
- Host: GitHub
- URL: https://github.com/arnested/psr3-journald
- Owner: arnested
- License: mit
- Created: 2020-03-09T09:55:43.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T17:36:17.000Z (about 1 year ago)
- Last Synced: 2025-03-21T05:47:28.283Z (12 months ago)
- Topics: experimental, ffi, hacktoberfest, journald, logger, php, psr-3, psr3, systemd
- Language: PHP
- Homepage: https://packagist.org/packages/arnested/psr3-journald
- Size: 86.9 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# PSR-3 logger for Journald
An experimental PSR-3 compatible logger logging (structured) data to Journald.
## Requirements
This library requires PHP 8.1 or later.
[FFI](https://www.php.net/manual/en/class.ffi.php) is supported from
7.4 and is used to write to Journald.
You also need to have systemd on the machine.
## Usage
See [example.php](example.php).