PHP code example of stmllr / typo3-zahnstocher

1. Go to this page and download the library: Download stmllr/typo3-zahnstocher library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

stmllr / typo3-zahnstocher example snippets


$GLOBALS['TYPO3_CONF_VARS']['LOG']['processorConfiguration'] = [
		\TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
			\Stmllr\Zahnstocher\Log\Processor\IntrospectionProcessor::class => [
				'appendFullBackTrace' => TRUE,
				'shiftBackTraceLevel' => 4,
			],
		],
	],
];

$GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [
		\TYPO3\CMS\Core\Log\LogLevel::DEBUG => [
			\Stmllr\Zahnstocher\Log\\Writer\FileWriter::class => [
				'logFile' => 'typo3temp/logs/typo3.log'
			],
		],
	],
];