Search by

marko / log

markshust

PSR-3 compatible logging interfaces and formatters for Marko Framework

Package info

github.com/marko-php/marko-log

Type:marko-module

pkg:composer/marko/log

Statistics

Installs: 882

Dependents: 5

Suggesters: 1

Stars: 0

0.11.0 2026-10-06 15:11 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