---
title: "Feature: #85236 - Infix option to default log file names for FileWriter"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-85236"
source: "Changelog/9.4/Feature-85236-InfixOptionToDefaultLogFileNamesForFileWriter.rst"
typo3-version: "9.4"
typo3-major: 9
type: "feature"
issue: 85236
forge: "https://forge.typo3.org/issues/85236"
tags: ["LocalConfiguration", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #85236 - Infix option to default log file names for FileWriter {#feature-85236}

See [forge#85236](https://forge.typo3.org/issues/85236)

## Description {#description}

A new option `logFileInfix` for the `FileWriter` has been introduced.
This allows to set a different name for the log file that is created by the `FileWriter`
without having to define a full path to the file.

The example configuration will use the log file named `typo3\_special\_\<hash>.log`
for any log message stemming from a class from the `\Vendor\ExtName` namespace.

```php
$GLOBALS['TYPO3_CONF_VARS']['LOG']['Vendor']['ExtName']['writerConfiguration'] = [
  \TYPO3\CMS\Core\Log\LogLevel::INFO => [
    \TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
      'logFileInfix' => 'special'
    ]
  ]
];
```

## Impact {#impact}

The behaviour for existing `FileWriter` configurations is not changed.
