I would like to debug backend and need to write some logs. I tried the code belowed but it is not working, it doesn't write anything ! Can you help me ?
var $logger;
public function __construct()
{
parent::__construct();
// desactiver le cache sinoin les FE plugins ne sont pas réactualisé
// desactivation dans le backend modifie des liens en ajoutant '/no_cache/' devant le lien
// les liens deviennent inutilisables
$GLOBALS['TSFE']->set_no_cache();
$this->logger = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\CMS\Core\Log\LogManager')->getLogger(__CLASS__);
$this->logger->info('Everything went fine.');
}