1
0
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:
loviuz
2023-07-06 09:53:16 +02:00
parent d8f408fba0
commit 144fba574c

View File

@@ -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