[BUGFIX] Moving files in filelist renames file to "1"
[Packages/TYPO3.CMS.git] / t3lib / log / processor / class.t3lib_log_processor_web.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2011-2012 Ingo Renner (ingo@typo3.org)
6 * (c) 2012 Steffen Müller (typo3@t3node.com)
7 * All rights reserved
8 *
9 * This script is part of the TYPO3 project. The TYPO3 project is
10 * free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * The GNU General Public License can be found at
16 * http://www.gnu.org/copyleft/gpl.html.
17 *
18 * This script is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * This copyright notice MUST APPEAR in all copies of the script!
24 ***************************************************************/
25
26
27 /**
28 * Web log processor to automatically add web request related data to a log
29 * record.
30 *
31 * @author Ingo Renner <ingo@typo3.org>
32 * @author Steffen Müller <typo3@t3node.com>
33 * @package TYPO3
34 * @subpackage t3lib
35 */
36 class t3lib_log_processor_Web extends t3lib_log_processor_Abstract {
37
38 /**
39 * Processes a log record and adds webserver environment data.
40 * We use the usual "Debug System Information"
41 *
42 * @param t3lib_log_Record $logRecord The log record to process
43 * @return t3lib_log_Record The processed log record with additional data
44 * @see t3lib_div::getIndpEnv()
45 */
46 public function processLogRecord(t3lib_log_Record $logRecord) {
47 $logRecord->addData(t3lib_div::getIndpEnv('_ARRAY'));
48
49 return $logRecord;
50 }
51
52 }
53
54 ?>