mteu / typo3-stream-writer
This extension adds the possibility to log to php://stdout and php://stderr
Installs: 697
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 10
Type:typo3-cms-extension
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- typo3/cms-core: ~12.4.0 || ~13.4.0
Requires (Dev)
- armin/editorconfig-cli: ^1.8 || ^2.0
- ergebnis/composer-normalize: ^2.43
- friendsofphp/php-cs-fixer: ^3.60
- mteu/docblock-rules: ^0.3
- mteu/zealous-stan: ^0.6
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^1.12.6
- phpstan/phpstan-phpunit: ^1.4
- phpunit/php-code-coverage: ^10.1
- phpunit/phpcov: ^9.0
- phpunit/phpunit: ^10.5
- saschaegerer/phpstan-typo3: ^1.10
- ssch/typo3-rector: ^2.6
- symfony/process: ^6.4 || ^7.1
- typo3/coding-standards: ^0.8.0
- typo3/testing-framework: ^8.2
- dev-main
- 0.4.1
- 0.4.0
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.0
- dev-renovate/phpunit-phpunit-10.5.x-lockfile
- dev-renovate/ssch-typo3-rector-2.x-lockfile
- dev-renovate/patch-phpstan-packages
- dev-renovate/ssch-typo3-rector-3.x
- dev-renovate/typo3-testing-framework-8.2.x-lockfile
- dev-renovate/ergebnis-composer-normalize-2.x-lockfile
- dev-renovate/lock-file-maintenance
- dev-renovate/major-phpstan-packages
- dev-renovate/php-8.x
- dev-feature/introduce-version-bumper
This package is auto-updated.
Last update: 2024-12-21 06:03:45 UTC
README
TYPO3 Stream Writer 🍿
This TYPO3 CMS extensions adds a custom LogWriter
to the TYPO3 Logging Framework allowing the CMS to log messages to
php://stdout
or php://stderr
.
⚡️ Quickstart
Installation
composer require mteu/typo3-stream-writer
Usage
Configure your extension or TYPO3 instance to use the new writer.
# config/system/additional.php | typo3conf/system/additional.php <?php declare(strict_types=1); use TYPO3\CMS\Core\Authentication\BackendUserAuthentication; use TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication; use TYPO3\CMS\Core\Core\Environment; use TYPO3\CMS\Core\Log\LogLevel; use mteu\StreamWriter\Config\StandardStream; use mteu\StreamWriter\Writer\StreamWriter; defined('TYPO3') or die(); $GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [ \Psr\Log\LogLevel::ERROR => [ StreamWriter::class => [ 'outputStream' => StandardStream::Error, ], ], \Psr\Log\LogLevel::DEBUG => [ StreamWriter::class => [ 'outputStream' => StandardStream::Out, 'ignoredComponents' => [ BackendUserAuthentication::class, FrontendUserAuthentication::class, ], 'maxLevel' => Psr\Log\LogLevel::WARNING, ], ], ];
💡 Learn more about the LogWriter configuration in
WriterConfiguration
.
⭐ License
This project is licensed under GNU General Public License 3.0 (or later).