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

Installs: 47

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:package

pkg:composer/khalilleo-webagentur/monolog

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

This package is auto-updated.

Last update: 2025-10-20 02:24:55 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.