diff --git a/com_oauthserver/administrator/src/Extension/Component.php b/com_oauthserver/administrator/src/Extension/Component.php index 314205a..f621951 100644 --- a/com_oauthserver/administrator/src/Extension/Component.php +++ b/com_oauthserver/administrator/src/Extension/Component.php @@ -16,6 +16,7 @@ use Joomla\CMS\Component\Router\RouterServiceTrait; use Joomla\CMS\Extension\BootableExtensionInterface; use Joomla\CMS\Extension\MVCComponent; use Joomla\CMS\HTML\HTMLRegistryAwareTrait; +use Joomla\CMS\Log\Log; use Joomla\CMS\Plugin\PluginHelper; use Psr\Container\ContainerInterface; use Webmasterskaya\Component\OauthServer\Administrator\Helper\ComponentHelper; @@ -44,5 +45,13 @@ class Component extends MVCComponent implements ComponentHelper::registerComponentDependencies(); PluginHelper::importPlugin('oauthserver'); + + Log::addLogger( + [ + 'text_file' => 'com_oauthserver.log.php' + ], + Log::ALL, + ['com_oauthserver'] + ); } }