[TYPO3-core] RFC: error logging for the Core
Holzinger Franz
franz at fholzinger.com
Mon Jan 2 22:46:00 CET 2006
Hello Martin,
>>+ if (!$file) {
>>+ die('Cannot open TYPO3 system log: '.$msg);
>>+ }
>>I think this should not die here but only return and maybe send an
>>email to the shop admin.
>>
>>
>
>
>A bit fixed on shops, aren't you? ;-) If we send an email we need another config variable, which I want to avoid. But I prefer the error_log-version anyway.
>
>
For me TYPO3 is mainly a shop system ;-) .
I thought we could use both variants, one with DevLog and one with
error_log --> additional parameter. Some people want this the others that.
>>>$msg = ' - '.$extKey.' - '.$severity.' - '.$msg;
>>>
>>>
>>Maybe a new variable $TYPO3_CONF_VARS['SYS']['logFileLevel'] could be
>>used to set which level should get logged at all.
>>
>>
>
>
>Possibly.
>
>Buuuut, which version do you prefer? The one with the fwrite() or the one with the error_log().
>
>And what is your general impression of the patch? +1/-1/neutral...
>
>
>
I want to have both in the same function, then I will give +1. And what
about debug(), too? So that a developer could switch to that what he
prefers.
Thanks.
Regards,
Franz
More information about the TYPO3-team-core
mailing list