<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}

$GLOBALS['TYPO3_CONF_VARS']['LOG']['Opentalent']['OtCore']['writerConfiguration'] = [
    // configuration for ERROR level log entries
    TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
        // add a FileWriter
        TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
            // configuration for the writer
            'logFile' => TYPO3\CMS\Core\Core\Environment::getVarPath() . '/log/ot_typo3.log'
        ]
    ],
    TYPO3\CMS\Core\Log\LogLevel::WARNING => [
        // add a DatabaseWriter
        TYPO3\CMS\Core\Log\Writer\DatabaseWriter::class => [
            'logTable' => 'ot_log'
        ]
    ]
];


$GLOBALS['TYPO3_CONF_VARS']['EXT']['news']['Controller/NewsController.php']['createDemandObjectFromSettings'] = ['Opentalent\OtTemplating\News\NewsFilter->createDemandObjectFromSettings'];
