weew/app-monolog
Composer 安装命令:
composer require weew/app-monolog
包简介
Integration of the monolog/monolog package into weew/app package.
README 文档
README
Table of contents
Installation
composer require weew/app-monolog
Introduction
This package integrates the monolog/monolog library into the weew/php-app package.
Usage
To make monolog available inside the application, simply register MonologProvider on the kernel.
$app->getKernel()->addProviders([ MonologProvider::class ]);
You can retrieve a specific logger by the channel name:
$channelManager = $app->getContainer()->get(IMonologChannelManager::class); $channelManager->getLogger('config_name');
Example config
This is how your configuration might look like:
monolog: channels: default: log_file_path: /var/logs/default.log log_level: debug error: log_file_path: /var/logs/error.log log_level: debug
统计信息
- 总下载量: 120
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-07-19