mirror of
https://github.com/Deutscher-Tischfussballbund/com_sportsmanager.git
synced 2026-06-10 14:37:52 +00:00
feat: enable logging into own log file com_sportsmanager.php
This commit is contained in:
@@ -15,6 +15,7 @@ use Joomla\CMS\Dispatcher\ComponentDispatcherFactoryInterface;
|
|||||||
use Joomla\CMS\Extension\ComponentInterface;
|
use Joomla\CMS\Extension\ComponentInterface;
|
||||||
use Joomla\CMS\Extension\Service\Provider\ComponentDispatcherFactory;
|
use Joomla\CMS\Extension\Service\Provider\ComponentDispatcherFactory;
|
||||||
use Joomla\CMS\Extension\Service\Provider\MVCFactory;
|
use Joomla\CMS\Extension\Service\Provider\MVCFactory;
|
||||||
|
use Joomla\CMS\Log\Log;
|
||||||
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
|
use Joomla\CMS\MVC\Factory\MVCFactoryInterface;
|
||||||
use Joomla\DI\Container;
|
use Joomla\DI\Container;
|
||||||
use Joomla\DI\ServiceProviderInterface;
|
use Joomla\DI\ServiceProviderInterface;
|
||||||
@@ -36,6 +37,14 @@ return new class implements ServiceProviderInterface {
|
|||||||
*/
|
*/
|
||||||
public function register(Container $container): void
|
public function register(Container $container): void
|
||||||
{
|
{
|
||||||
|
Log::addLogger(
|
||||||
|
[
|
||||||
|
'text_file' => 'com_sportsmanager.php',
|
||||||
|
],
|
||||||
|
Log::ALL,
|
||||||
|
['com_sportsmanager']
|
||||||
|
);
|
||||||
|
|
||||||
$container->registerServiceProvider(new MVCFactory('\\Dtfb\\Component\\com_sportsmanager'));
|
$container->registerServiceProvider(new MVCFactory('\\Dtfb\\Component\\com_sportsmanager'));
|
||||||
$container->registerServiceProvider(new ComponentDispatcherFactory('\\Dtfb\\Component\\com_sportsmanager'));
|
$container->registerServiceProvider(new ComponentDispatcherFactory('\\Dtfb\\Component\\com_sportsmanager'));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user