Forum OpenACS Development: Re: Getting rid of the haystack in the error log

Collapse
Posted by Christian Eva on
When I started to use AOL-Server I started to use Notice/Debug as it is thought for. Soon I felt that this is not flexible enough for debugging and I ported a little Debug-Logging proc over into my procs, called at the beginning of each ADP page a notification proc (enabling/disableing a particular debug level) and was happy enough.

When I started this year to use OpenAcs as the environment for a new (I18N) application, I missed my debugging stuff very much. After a while I decided to include a little patch in rp_handler to call my notification proc. So in this way I can trace the pages. My own pages and procs contain a higher density of Debug calls then the ACS average but then I can choose and change at runtime the level between 0 (no debug) and 9 (most details).

So if there is some interest I can publish my code as a base for inspiration/discussion