Configuring Logging

Nice comes with built-in Monolog integration.

Note: For more information about installing and configuring the Log extension, see relevant documentation.

A Nice application always exposes its configured log directory. You can check this in your application:


use Nice\Application;

// ...

$app = new Application('prod', true);

// The configured log directory is always available
echo $app->getLogDir();

Additionally, the following parameters are available:

  • app.log_dir will be the path to the log directory.

Tip: For further information on configuring logging, see the Log extension documentation.


A Nice application is really just a glorified HttpKernel. This means Nice is compatible with a myriad of middlewares which simplify the various layers of your application.

Powered by Codex 1.1.0