mirror of
https://github.com/igorsimdyanov/php8.git
synced 2025-07-23 02:58:23 +00:00
Глава 30: вычитка
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
||||
phpdocs/tools
|
||||
phpdocs/docs
|
||||
.DS_Store
|
||||
inherit/test.log
|
||||
|
||||
vendor
|
||||
*.log
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user