Logging
New in version 1.1.0
When using the default crawlers provided by this extension, crawling
results are logged using a configured log writer. By default, TYPO3
configures a file writer with minimum log level warning
.
However, you can always override logging configuration within your
config/
or config/
file:
return [
'LOG' => [
'EliasHaeussler' => [
'Typo3Warming' => [
'Crawler' => [
// Default crawler
'ConcurrentUserAgentCrawler' => [
'writerConfiguration' => [
\Psr\Log\LogLevel::WARNING => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
// A. Disable logging
'disabled' => true,
// -or- B. Configure logger
'logFileInfix' => 'warming',
],
],
],
],
// Verbose crawler
'OutputtingUserAgentCrawler' => [
'writerConfiguration' => [
\Psr\Log\LogLevel::WARNING => [
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
// A. Disable logging
'disabled' => true,
// -or- B. Configure logger
'logFileInfix' => 'warming',
],
],
],
],
],
],
],
],
];
See also
Read more about logging in the official TYPO3 documentation.
Custom log table
The extension ships with a custom log table tx_
.
In addition, a custom log writer
\Elias
is provided that writes all logged crawling results to said table.
Note
All log entries are written to the root page (uid=0).
Note that this log writer is not enabled by default. You must explicitly
enable it in your config/
or
config/
file:
return [
'LOG' => [
'EliasHaeussler' => [
'Typo3Warming' => [
'Crawler' => [
// Default crawler
'ConcurrentUserAgentCrawler' => [
'writerConfiguration' => [
\Psr\Log\LogLevel::WARNING => [
\EliasHaeussler\Typo3Warming\Log\Writer\DatabaseWriter::class => [],
],
],
],
// Verbose crawler
'OutputtingUserAgentCrawler' => [
'writerConfiguration' => [
\Psr\Log\LogLevel::WARNING => [
\EliasHaeussler\Typo3Warming\Log\Writer\DatabaseWriter::class => [],
],
],
],
],
],
],
],
];