Created
September 19, 2013 11:31
-
-
Save mficzel/6622101 to your computer and use it in GitHub Desktop.
Create and use a custom-logger in TYPO3.Flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//create logger | |
$this->logger = \TYPO3\Flow\Log\LoggerFactory::create('myLoggerName', 'TYPO3\Flow\Log\Logger', '\TYPO3\Flow\Log\Backend\FileBackend', array( | |
'logFileURL' => FLOW_PATH_DATA . 'Logs/myLoggerName.log', | |
'createParentDirectories' => TRUE, | |
'severityThreshold' => LOG_INFO, | |
'maximumLogFileSize' => 10485760, | |
'logFilesToKeep' => 1, | |
'logIpAddress' => TRUE | |
)); | |
//use logger | |
$this->logger->log('message', LOG_INFO, array('foo','bar')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment