StackLogger
Logger Stack middleware that logs Request and Response., (*1)
, (*2)
Usage
Example
Have a look at example.php
for a example how to use this middleware., (*3)
Options
The following options can be used:, (*4)
-
logger (optional): A instance of a PSR-3 compatible logger, like Monolog. Default is a NullLogger
., (*5)
-
log_level (optional): The log level used for the log entries. Default is LogLevel::INFO., (*6)
-
log_sub_request (optional): Flag if Sub-Requests (HttpKernelInterface::SUB_REQUEST) should be logged. Default is false., (*7)
Intallation
The recommended way to install StackLogger is through
Composer:, (*8)
json
{
"require": {
"silpion/stack-logger": "@stable"
}
}
, (*9)
Protip: you should browse the
silpion/stack-logger
page to choose a stable version to use, avoid the @stable
meta constraint., (*10)
License
StackLogger is released under the MIT License. See the bundled LICENSE file for details., (*11)