---
title: "Logging"
manual: "Warming"
version: "5.3"
permalink: "https://docs.typo3.org/permalink/eliashaeussler/typo3-warming:logging@5.3"
source: "Configuration/Logging.rst"
rendered: "2026-11-05T08:37:00+00:00"
---

# Logging {#logging}

<!-- TODO: no Markdown rendering for "versionadded" -->

Feature: #374 - Introduce logging for default crawlers

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/system/settings.php`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/Index.html#file-project-config-system-settings-php) or [`config/system/additional.php`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/Index.html#file-project-config-system-additional-php)
file:

**config/system/settings.php**

```php
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',
                                ],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
];
```

> [!NOTE]
> **See also**
>
> Read more about logging in the [official TYPO3 documentation](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Logging/Index.html#logging).

## Custom log table {#custom-log-table}

The extension ships with a custom log table `tx_warming_domain_model_log`.
In addition, a custom log writer
`\EliasHaeussler\Typo3Warming\Log\Writer\DatabaseWriter`
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/system/settings.php`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/Index.html#file-project-config-system-settings-php) or
[`config/system/additional.php`](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/Typo3ConfVars/Index.html#file-project-config-system-additional-php) file:

**config/system/settings.php**

```php
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 => [],
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
];
```

> [!NOTE]
> **See also**
>
> View the sources on GitHub:
>
> -   [DatabaseWriter](https://github.com/eliashaeussler/typo3-warming/blob/main/Classes/Log/Writer/DatabaseWriter.php)
