[TASK] Re-work/simplify copyright header in PHP files - Part 3
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Log / Processor / WebProcessor.php
1 <?php
2 namespace TYPO3\CMS\Core\Log\Processor;
3
4 /**
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16 /**
17 * Web log processor to automatically add web request related data to a log
18 * record.
19 *
20 * @author Ingo Renner <ingo@typo3.org>
21 * @author Steffen Müller <typo3@t3node.com>
22 */
23 class WebProcessor extends \TYPO3\CMS\Core\Log\Processor\AbstractProcessor {
24
25 /**
26 * Processes a log record and adds webserver environment data.
27 * We use the usual "Debug System Information"
28 *
29 * @param \TYPO3\CMS\Core\Log\LogRecord $logRecord The log record to process
30 * @return \TYPO3\CMS\Core\Log\LogRecord The processed log record with additional data
31 * @see \TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv()
32 */
33 public function processLogRecord(\TYPO3\CMS\Core\Log\LogRecord $logRecord) {
34 $logRecord->addData(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('_ARRAY'));
35 return $logRecord;
36 }
37
38 }