* pass necessary first argument in logger class constructor
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
/**
|
/**
|
||||||
* Available logging types: html, error_log, both
|
* Available logging types: html, error_log, both
|
||||||
|
@ -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();
|
||||||
|
Reference in New Issue
Block a user