theseer/journald
最新稳定版本:1.1.0
Composer 安装命令:
composer require theseer/journald
包简介
Library to write log entries to Journald
README 文档
README
A simple Library to write to Systemd's Journald from PHP.
use theseer\journald\JournalWriter; use theseer\journald\JournalEntry; use theseer\journald\SocketPath; function sample() { throw new RuntimeException('Test Exception Message'); } try { sample(); } catch (Throwable $t) { (new JournalWriter(SocketPath::default()))->write( JournalEntry::fromThrowable($t) ); } (new JournalWriter(SocketPath::default()))->write( JournalEntry::fromMessage('This is a test') );
统计信息
- 总下载量: 7.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2022-06-06