mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Aggiunta limitazione log di errore a 30 file
This commit is contained in:
4
core.php
4
core.php
@@ -96,8 +96,8 @@ if (!API\Response::isAPIRequest()) {
|
||||
|
||||
// File di log ordinati in base alla data
|
||||
if (App::debug()) {
|
||||
$handlers[] = new RotatingFileHandler(base_dir().'/logs/error.log', 0, Monolog\Logger::ERROR);
|
||||
$handlers[] = new RotatingFileHandler(base_dir().'/logs/setup.log', 0, Monolog\Logger::EMERGENCY);
|
||||
$handlers[] = new RotatingFileHandler(base_dir().'/logs/error.log', 30, Monolog\Logger::ERROR);
|
||||
$handlers[] = new RotatingFileHandler(base_dir().'/logs/setup.log', 30, Monolog\Logger::EMERGENCY);
|
||||
}
|
||||
|
||||
// Inizializzazione Whoops
|
||||
|
||||
Reference in New Issue
Block a user