[TYPO3-english] devlog on production system
François Suter
fsu-lists at cobweb.ch
Thu Mar 31 13:26:13 CEST 2011
Hi,
> How do you manage logging on production systems? Is it a good idea to
> activate it on a production system if "Minimun level for logging" is set
> to 3 (only Errors)? Do i have to expect less performance?
It really depends. There's a general setting in the Install Tool called
enableDLOG. If you enable it, TYPO3 (and extensions respecting this
flag) will start spitting a huge number of devlog entries. So with this
setting, you have to be careful, it could indeed lower performance. And
blow up your database if you don't set a limit on the amount of records
to store in table tx_devlog. There are lost of ways you can reduce the
number of entries, though. Minimum level is one, although sometimes you
may want to see also informational messages and not just errors. You can
set extension keys to ignore some source of messages (for example,
RealURL is very verbose and if your problem is not related to RealURL,
these log entries would be useless to you).
Now besides that general setting, quite a few extensions have their own
debug/devlog flag. In such a case you may just turn on logging for one
extension and have a reduced number of log entries.
And of course you may add devlog calls yourself inside the code you're
trying to debug.
Still if the calls are in a piece of code that's called very often, you
could encounter performance problems. Maybe in such a case - if all the
above-mentioned filtering is not enough - you could just turn logging on
for a few minutes, hoping you catch the problematic event and turn it
off again.
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-english
mailing list