koderhut/onelog-bundle
Composer 安装命令:
composer require koderhut/onelog-bundle
包简介
A simplified way to inject loggers into objects for Symfony apps
README 文档
README
Onelog Bundle
This bundle will help with wrapping all monolog and other loggers in a Symfony app into a single logger entry point simplifying the logging needed in an app.
Usages
- $onelog->debug('test', []); <-- wil proxy the data to the default logger, in case of Monolog the app logger is used
- $onelog->my_logger->debug('test', []); <-- will forward the call to the logger my_logger, in case of Monolog to the my_logger channel
- \OneLog::debug('test', []); <-- shortcut to the default logger instance
- \OneLog::instance()->my_logger->debug('test', []); <-- shortcut for accessing a specific logger instance
To be added:
- $onelog->logObject($object, []);
LICENSE
Please review the LICENSE file
统计信息
- 总下载量: 1.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-24