Search by

marko / log-stream

markshust

Stream logging driver (stdout/stderr) for Marko Framework

Package info

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

Type:marko-module

pkg:composer/marko/log-stream

Statistics

Installs: 6

Dependents: 1

Suggesters: 1

Stars: 0

0.13.0 2026-11-01 01:28 UTC

This package is auto-updated.

Last update: 2026-11-03 19:19:00 UTC


README

Stream logging driver --- writes log records to stderr or stdout for containers and process supervisors.

Installation

composer require marko/log-stream

Quick Example

# Container environment: stderr only, one JSON object per line
LOG_HANDLERS=stream
LOG_FORMATTER=json
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-stream