To be sure, check your current configuration. In the backend: Configuration > $GLOBALS['TYPO3_CONF_VARS']
> LOG
.
If it looks something like this
LOG/
└── writerConfiguration
└── 4
└── TYPO3\\CMS\\Core\\Log\\Writer\\FileWriter
You are using LogLevel 4, which is WARNING, you probably want to be using 3, which is ERROR. The LogLevels are in typo3/sysext/core/Classes/Log/LogLevel.php,
This is how you can change the configuration in AdditionalConfiguration.php:
$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [
\TYPO3\CMS\Core\Log\LogLevel::ERROR => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
'logFile' => 'path of log file ....'
]
]
];
(BTW, if you are using a non-Composer based installation, you can still configure the logging to be logged to a file outside of the webroot).
Documentation: https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Logging/Configuration/Index.html
You can see the default setting for the logging framework in the file typo3/sysext/core/Configuration/DefaultConfiguration.php:
You can see that the default is in fact WARNING:
'LOG' => [
'writerConfiguration' => [
\TYPO3\CMS\Core\Log\LogLevel::WARNING => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => []
]
],
The "Live" preset sets:
['BE']['debug'] = false;
['FE']['debug'] = false;
['SYS']['devIPmask'] = '';
['SYS']['displayErrors'] = 0;
['SYS']['systemLogLevel'] = 2; // 2 means warning
AFAIK, none of this influences the logs written by the Logging Framework. You may want to change systemLogLevel
for logging to the sys_log table though.