mteu/typo3-stream-writer
最新稳定版本:0.5.5
Composer 安装命令:
composer require mteu/typo3-stream-writer
包简介
This extension adds the possibility to log to php://stdout and php://stderr
README 文档
README
TYPO3 Stream Writer 🍿
Caution
This package is abandoned. Active maintenance is discontinued.
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).
统计信息
- 总下载量: 3.36k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2024-07-30