jantia/logit
Composer 安装命令:
composer require jantia/logit
包简介
Jantia PSR-3 implementation for Logs
README 文档
README
Logit handle your logs to files, databases and various data lakes. Complete list of handlers is below. You can build your own special handlers with advanced logging strategies with info at below.
This library implements the PSR-3 interface that you can type-hinst against in your own libraries to keep a maximum interoperability. You can also use it in your applications to make sure you can always use another compatible logger at a later time.
Installation
Install the latest version with
$ composer require jantia/logit
Basic Usage
<?php
use Jantia\LogitLevel;
use Jantia\Logger;
use Jantia\Handler\FileHandler;
// create a log channel
$log = new Logger('name');
$log->pushHandler(new Handler('path/to/your.log', LogitLevel::Warning->value));
// add records to the log
$log->warning('My warning');
$log->error('My error');
Documentation
About
Requirements
- Logit
^3.0works with PHP 8.3 or above.
Author
Jan Theon - jan@jantheon.com
License
Logit is licensed under the BSD 3-Clause License - see the LICENSE file for details
统计信息
- 总下载量: 282
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-12-09