[TYPO3-english] Write to log within eID extension

Simon Strandgaard simon at bee3.com
Thu Apr 22 10:04:37 CEST 2010


I'm on a server where I cannot tail -f the php_error.log. I interested in
writing to the log module in order to debug my code.


Within a regular plugin this code works, but sadly BE_USER is not
initialized in my eID code.

$message = 'TEST';
global $BE_USER;
if($BE_USER) {
$BE_USER->simplelog($message, $this->extKey, 1);
} else {
error_log("myext: no BE_USER logged in");
}


How do I write to the log file?

Alternative ways to debug it?


-- 
Best regards
Simon Strandgaard


More information about the TYPO3-english mailing list