https://github.com/webmafia/fluentlog-php
Fast, structured logging for PHP that implemented the Fluent Forward protocol
https://github.com/webmafia/fluentlog-php
fluentbit fluentd log php
Last synced: 5 months ago
JSON representation
Fast, structured logging for PHP that implemented the Fluent Forward protocol
- Host: GitHub
- URL: https://github.com/webmafia/fluentlog-php
- Owner: webmafia
- License: mit
- Created: 2025-11-04T15:10:08.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-04T15:55:04.000Z (8 months ago)
- Last Synced: 2025-11-05T10:42:25.020Z (8 months ago)
- Topics: fluentbit, fluentd, log, php
- Language: PHP
- Homepage: https://packagist.org/packages/webmafia/fluentlog
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fluentlog-php
This is a PHP version of [Fluentlog](https://github.com/webmafia/fluentlog), with three important differences:
1. Writing logs is not asynchronous.
2. Written logs are not buffered.
3. Written logs are not retried.
For this reason it's highly recommended to write to a local log collector (preferably [FluentBit](https://fluentbit.io/)).
## Installation
```sh
composer require webmafia/fluentlog
```
## Usage example
```php
info('hello from php %d', $i) . "\n";
}
$end = microtime(true);
$dur = $end - $start;
echo 'Done in ' . $dur . ' seconds' . "\n";
```