* pass necessary first argument in logger class constructor

This commit is contained in:
2022-07-10 14:50:04 +03:00
parent 136b630994
commit 84abee4234
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,5 @@
<?php <?php
return [ return [
/** /**
* Available logging types: html, error_log, both * Available logging types: html, error_log, both

View File

@ -50,7 +50,9 @@ add_action('admin_menu', fn () => add_submenu_page(
} }
if ($_SERVER['REQUEST_METHOD'] == 'POST') { if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$logger = new Logger(); $loggerConfig = include __DIR__ . '/config/logger.php';
$logger = new Logger($loggerConfig['log_type']);
echo '<pre>'; echo '<pre>';
(new Actions\Convert())->run(); (new Actions\Convert())->run();