marko/log

PSR-3 compatible logging interfaces and formatters for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-log

Type:marko-module

pkg:composer/marko/log

Statistics

Installs: 4

Dependents: 3

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:35 UTC


README

Logging contracts and formatters -- define how your application logs messages without coupling to a storage backend.

Installation

composer require marko/log

Note: You also need an implementation package such as marko/log-file.

Quick Example

use Marko\Log\Contracts\LoggerInterface;

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

    public function placeOrder(int $orderId): void
    {
        $this->logger->info('Order placed', ['order_id' => $orderId]);
    }
}

Documentation

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