System Logging

StrataPHP has a built in logging system that operates in levels.

Logging path is storage/logs/app.log outside the public_html folder. You can set the required log level in the app/config.php


log_level' => 'DEBUG',



               Dev: 'log_level' => 'DEBUG' - DEBUG, INFO, WARNING, ERROR
        Staging: 'log_level' => 'INFO' - INFO, WARNING, ERROR
  Production: 'log_level' => 'WARNING' - WARNING, ERROR only


use App\Logger;
$logger = new Logger($config);
$logger->warning(
    'This is a warning message.'
)