Logger Stack middleware for logging request and responses.

v1.0.0 2014-04-17 13:57 UTC

This package is not auto-updated.

Last update: 2024-05-11 14:12:20 UTC


Logger Stack middleware that logs Request and Response.

Build Status HHVM Status Scrutinizer Code Quality Code Coverage Project Status



Have a look at example.php for a example how to use this middleware.


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.


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.


StackLogger is released under the MIT License. See the bundled LICENSE file for details.