Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 601 Bytes

File metadata and controls

31 lines (22 loc) · 601 Bytes

marko/log-file

File-based logging driver --- writes log messages to disk with daily or size-based rotation.

Installation

composer require marko/log-file

Quick Example

use Marko\Log\Contracts\LoggerInterface;

class ImportService
{
    public function __construct(
        private LoggerInterface $logger,
    ) {}

    public function import(string $file): void
    {
        $this->logger->info('Starting import', ['file' => $file]);
    }
}

Documentation

Full usage, API reference, and examples: marko/log-file