kigkonsult/loggerdepot
Composer 安装命令:
composer require kigkonsult/loggerdepot
包简介
Depot for application loggers, making loggers available on demand
README 文档
README
is a depot for PHP application/software loggers
making loggers available on demand.
Each logger is identified by a unique and fixed (type case-sensitive string) key and set and retrieved using the key.
You can use namespace as key (ex __NAMESPACE__) setting up a logger and
invoke the logger using (qualified namespaced) class names
(ex get_class() or __CLASS__) in the namespace tree.
It is possible to combine fixed key and 'namespaced' loggers in the depot.
You may also use different keys for the same logger as well as set a logger as a fallback logger.
Invoking of a logger is as easy as LoggerDepot::getLogger( <key> ).
If no logger is set, a Psr\Log\NullLogger is returned.
The construction makes it possible to supervise loggers for separate parts (functions, modules, components etc) of your software. It is also possible to aggregate multiple (Psr\Log) loggers into one.
Usage
For LoggerDepot usage please review the details.
Sponsorship
Donation using paypal.me/kigkonsult are appreciated. For invoice, please e-mail.
Installation
For LoggerDepot installation please review the install.
Version 1.4+ supports PHP 8.0, 1.2 7.4, 1.0.4 7.0.
License
This project is licensed under the LGPLv3 License
统计信息
- 总下载量: 3.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2019-04-24