M5 A3 fertig
This commit is contained in:
@@ -360,4 +360,14 @@ function assert_blade(): void
|
||||
}
|
||||
}
|
||||
|
||||
use Monolog\Level;
|
||||
use Monolog\Logger;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
|
||||
function logger($name, $path){
|
||||
|
||||
$fullpath = $path . '\\' . $name . '.txt';
|
||||
$log = new Logger($name);
|
||||
$log->pushHandler(new StreamHandler($fullpath), Level::Warning);
|
||||
return $log;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user