PHP库,用于简单处理各种日志的Monolog。

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

This package is auto-updated.

Last update: 2024-09-19 23:51:58 UTC


README

PHP库,用于简单处理各种日志的Monolog。

要求

  • PHP ^8.1

安装

composer require khalilleo-webagentur/monolog

使用方法

// 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 ..');
.
.

版权

本项目采用MIT许可证。