silpion/stack-logger
Composer 安装命令:
composer require silpion/stack-logger
包简介
Logger Stack middleware for logging request and responses.
README 文档
README
Logger Stack middleware that logs Request and Response.
Usage
Example
Have a look at example.php for a example how to use this middleware.
Options
The following options can be used:
-
logger (optional): A instance of a PSR-3 compatible logger, like Monolog. Default is a
NullLogger. -
log_level (optional): The log level used for the log entries. Default is LogLevel::INFO.
-
log_sub_request (optional): Flag if Sub-Requests (HttpKernelInterface::SUB_REQUEST) should be logged. Default is false.
Intallation
The recommended way to install StackLogger is through Composer:
{
"require": {
"silpion/stack-logger": "@stable"
}
}
Protip: you should browse the
silpion/stack-logger
page to choose a stable version to use, avoid the @stable meta constraint.
License
StackLogger is released under the MIT License. See the bundled LICENSE file for details.
统计信息
- 总下载量: 11.14k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-17