It doesn't matter whenever I use LogTrait or just the static Log functions nothing gets outputted to the debug.log file. I can't really seem to figure out why. In bootstrap.php i see this line of code:
Log::config(Configure::consume('Log'));
This must lead to the app.php, but nothing there is configuring the debug logger. I haven't removed any code from app.php, so i don't really see how it just stops working suddenly. In the debug bar on the website itself I can see what happens in the log, but if I for example do a post request that redirect to another page I don't get see what the page logged because no changes was made to the "debug.log" file
I call the log function either by using the LogTrait in CakePHP:
// I use the 'use LogTrait;' under the class declaration, and the 'use Cake\Log\LogTrait;' at the top of the file.
$this->log('message', 'debug');
Or by calling the static function:
\Cake\Log\Log::debug('message');