Skip to content

Commit

Permalink
feat: switch from leaf date to tick
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Apr 2, 2023
1 parent 725070d commit fbfc5c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LogWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ protected function writeAsLeaf($message, $level)
{
FS::prepend(
$this->logFile,
(string) "[" . tick()->now() . "]\n" . $level . "$message\n"
(string) "[" . (new \Leaf\Date())->tick()->now() . "]\n" . $level . "$message\n"
);
}

protected function writeAsLinux($message, $level)
{
FS::append(
$this->logFile,
(string) "[" . tick()->now() . "] " . $level . "$message\n"
(string) "[" . (new \Leaf\Date())->tick()->now() . "] " . $level . "$message\n"
);
}
}

0 comments on commit fbfc5c9

Please sign in to comment.