logging: Add TRACE log level

This commit is contained in:
Benjamin Renard 2020-11-30 10:46:52 +01:00
parent 4a4f804ae2
commit a80208adc0
2 changed files with 7 additions and 6 deletions

View file

@ -32,7 +32,7 @@ else
// Log file path
$log_file = "$data_dir/logs/app.log";
// Log level (DEBUG / INFO / WARNING / ERROR / FATAL)
// Log level (TRACE / DEBUG / INFO / WARNING / ERROR / FATAL)
$log_level = 'INFO';
// Debug Ajax request/response

View file

@ -15,11 +15,12 @@ $_log_file_fd=null;
// Log Levels
$_log_levels=array(
'DEBUG' => 0,
'INFO' => 1,
'WARNING' => 2,
'ERROR' => 3,
'FATAL' => 4,
'TRACE' => 0,
'DEBUG' => 1,
'INFO' => 2,
'WARNING' => 3,
'ERROR' => 4,
'FATAL' => 5,
);
function logging($level, $message) {