Skip to content

Commit

Permalink
dev/core#4270 createDebugLogger/ConfigAndLog: use a standard date format
Browse files Browse the repository at this point in the history
  • Loading branch information
mlutfy committed Sep 22, 2023
1 parent 728fadb commit 5aed2c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Core/Error.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,9 @@ public static function debug_query_result($query) {
*/
public static function createDebugLogger($prefix = '') {
self::generateLogFileName($prefix);
return Log::singleton('file', \Civi::$statics[__CLASS__]['logger_file' . $prefix], '');
return Log::singleton('file', \Civi::$statics[__CLASS__]['logger_file' . $prefix], '', [
'timeFormat' => '%Y-%m-%d %H:%M:%S',
]);
}

/**
Expand Down

0 comments on commit 5aed2c7

Please sign in to comment.