[Typo3-dev] using devLog instead of debug in the core?
Martin T. Kutschker
Martin.no5pam.Kutschker at blackbox.n0spam.net
Mon Jan 31 09:08:41 CET 2005
Martin T. Kutschker wrote:
>
> Where should devLog be used? And how should it be triggered?
To make my question more precise:
The point is that the devLog could be used on many places within the
Core. This would obviously clutter up the log, even with a meaningful
severity parameter.
So where should it be used?
The second question is about configurability. Should the Core simply
log, or should it be enabled withe a sitewide config. Or is it enough to
enable logging by changing a variable manually in the source code of
some classes.
IMHO the latter is only of interest for info notices relevant only to
the developer of the classes itself. Logging relevant to 3rd party devs
or end users should always occur. Eg a failed SQL query should always be
logged by the DB classes. It should not be necessary to enable logging
for such a critical failure.
Masi
More information about the TYPO3-dev
mailing list