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 path
$log_file = "$data_dir/logs/app.log"; $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'; $log_level = 'INFO';
// Debug Ajax request/response // Debug Ajax request/response

View file

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