Skip to content

marko-php/marko-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/log

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

About

[READ-ONLY] PSR-3 compatible logging interfaces and formatters for Marko Framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages