marko/log-file

File-based logging driver for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-log-file

Type:marko-module

pkg:composer/marko/log-file

Statistics

Installs: 4

Dependents: 0

Suggesters: 1

Stars: 0

0.0.1 2026-03-25 17:53 UTC

This package is auto-updated.

Last update: 2026-03-25 21:07:25 UTC


README

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