[Typo3-dev] using devLog instead of debug in the core?

René Fritz r.fritz at colorcube.de
Wed Feb 2 14:35:08 CET 2005


> > But I strongly sugest to use a common one-line format. Like
> >
> > if ($this->writeDevLog) ...
>
> Good, but what to do about the static methods of eg t3lib_div?
>
> /* WRITE DEV LOG */ t3lib_div::devLog(..)

We should agree on a common format but in fact it doesn't matter if devLog 
calls are one liner and just every line with "t3lib_div::devLog" in it will 
be deleted by the "tuning" script.

But we have to put a if() in the beginning of the line. 

if (TYPO3_DLOG OR $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_div.php']
['writeDevLog'])  t3lib_div::devLog(...

This is ugly isn't it?


René

-- 
COLORCUBE
digital media lab

www.colorcube.de




More information about the TYPO3-dev mailing list