leon0399 / monolog-flysystem
Writes your Monolog records into Flysystem files.
Installs: 51 761
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- php: >=7.3
- league/flysystem: ^1.0
- monolog/monolog: ^2.4
Requires (Dev)
- phpunit/phpunit: ^9
- dev-master
- 1.2.0
- 1.1.0
- 1.0.0
- 0.1.0
- dev-dependabot/composer/league/flysystem-tw-1.0or-tw-3.0
- dev-dependabot/composer/monolog/monolog-tw-2.4or-tw-3.0
- dev-dependabot/add-v2-config-file
- dev-feature/github-action
- dev-dependabot/composer/league/flysystem-tw-1.0or-tw-2.0
- dev-dependabot/composer/phpunit/phpunit-tw-7or-tw-8
- dev-feature/circleci
This package is auto-updated.
Last update: 2025-03-18 03:45:32 UTC
README
Writes your Monolog records into Flysystem files.
Installation
Install the latest version with
$ composer require leon0399/monolog-flysystem
Basic Usage
<?php use Monolog\Logger; use League\Flysystem\Filesystem; use League\Flysystem\Adapter\Local as LocalAdapter; use Leon0399\MonologFlysystem\Handler\FlysystemStreamHandler; $filesystem = new Filesystem(new LocalAdapter('storage')); $handler = new FlysystemStreamHandler($filesystem, 'logs/laravel.log', Logger::WARNING); // create a log channel $log = new Logger('name'); $log->pushHandler($handler); // add records to the log $log->warning('Foo'); $log->error('Bar');