mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-06 21:50:39 +08:00
feat(logger): use microsecodnd to mark log
This commit is contained in:
@@ -26,7 +26,7 @@ class Logger {
|
||||
|
||||
static function Log(string $log = '', string $scope) {
|
||||
$path = self::getLogPath($scope);
|
||||
$log = '[' . date('Y-m-d H:i:s ms') . '] : ' . $log . PHP_EOL;
|
||||
$log = '[' . date('Y-m-d H:i:s u') . '] : ' . $log . PHP_EOL;
|
||||
file_put_contents($path, $log, FILE_APPEND);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user