Writes your Monolog records into Flysystem files.
Install the latest version with
$ composer require leon0399/monolog-flysystem
<?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');