Глава 30: вычитка

This commit is contained in:
Igor Simdyanov
2022-06-26 13:09:03 +03:00
parent 1eb8d13deb
commit 808d12a7a4
3 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@
phpdocs/tools
phpdocs/docs
.DS_Store
inherit/test.log
vendor
*.log

View File

@ -20,7 +20,7 @@ class FileLogger
public function log($str)
{
$prefix = '[' . date('Y-m-d_h:i:s ') . "{$this->name}] ";
$prefix = '[' . date('Y-m-d h:i:s ') . "{$this->name}] ";
$str = preg_replace('/^/m', $prefix, rtrim($str));
$this->lines[] = $str . PHP_EOL;
}

View File