PHP library for simple Monolog to handle any kinds of logs.

v1.0.1 2024-03-15 22:20 UTC

This package is auto-updated.

Last update: 2024-04-19 22:56:48 UTC


README

PHP library for simple Monolog to handle any kinds of logs.

Requirements

  • PHP ^8.1

Installation

composer require khalilleo-webagentur/monolog

Usage

// create this service as entry point

<?php

declare(strict_types=1);

namespace App\Service\Core;

use Khalilleo\Monolog\LoggerAbstruct;

final class MonologService extends LoggerAbstruct
{
    //
}
// call your service 

use App\Service\MonologService;

public function __construct(private readonly MonologService $monolog) {}


// use monolog

$this->monolog->logger->info('any message ..');
$this->monolog->logger->debug('any message ..');
.
.

Copyright

This project is licensed under the MIT License.