I've recently started adding debug log messages to shipping code under a IF SESSION:DEBUG-ALERT THEN condition. This works well enough but has resulted in some confusion (since it's not really documented as such) when consumers of the code add session:debug-alert for their own purposes.
How do you do this sort of thing? LOG-MANAGER? Your own logging framework?
-- peter
Peter,
At one point we had our own logging framework but we moved to the LOG-MANAGER with different application trace levels. This works just fine for us.
Peter,
At one point we had our own logging framework but we moved to the LOG-MANAGER with different application trace levels. This works just fine for us.
Flag this post as spam/abuse.
Flag this post as spam/abuse.
You mean wrapping log-manager as yet another logging service implementing a given interface in framework :)
I concur with Mike's comment regarding the lack of functionality in LOG-MANAGER:WRITE-MESSAGE to turn on or turn off custom logging subsystems at runtime.
We use preprocessor directives and conditional blocks to set the various logging/debugging states that we wish to trap. This 'solution' requires that we recompile the *.R files in which we want to change the logging/debugging state. I acknowledge this is not a lightweight solution, yet it serves our needs at this moment.
Flag this post as spam/abuse.