Добавлен класс Logger
This commit is contained in:
11
app/library/Logger.php
Normal file
11
app/library/Logger.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
namespace App\Library;
|
||||
|
||||
class Logger
|
||||
{
|
||||
public static function log($path, $message)
|
||||
{
|
||||
$log = date('Y-m-d H:i:s') . ' ' . $message;
|
||||
file_put_contents($path, $log . PHP_EOL, FILE_APPEND);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user