[TYPO3-core] RFC #9480: Bug/cleanup: Enhance debug information with SQL data

Oliver Hader oliver at typo3.org
Sat Oct 18 13:05:57 CEST 2008


Hi Ingo,

Ingo Renner schrieb:
> Francois Suter wrote:
>> I'm not sure all devLog calls in core are properly wrapped in a
>> TYPO3_DLOG test. But might as well clean this up :-)
> 
> better:
> create a "Null-Logger" class that is always present and only gets
> replaced by other loggers like devlog.
> The Null-Logger would have the same interface as a real logger but does
> just nothing else. No output, no logging, nothing.
> 
> This would save us the if() checks and we could just call the logger
> whereever we want without worrying about whether there's a real logger
> or not.

Well, I don't think that this is necessary. Null-Objects implementing an
interface makes sense for parts that rely on that object, like storage
or caching. But this logger is an addition and TYPO3_DLOG was designed
to simply enable or disable the devLog.

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list