Dain Sundstrom wrote:
I think projects should avoid logging entirely. The problem with logging is the information that comes out of it is useless to other software because it is encoded into user readable strings. IMHO, the best policy is to use a Monitor. For example see the following XBean Monitors:

http://svn.apache.org/repos/asf/geronimo/xbean/trunk/xbean-kernel/src/main/java/org/apache/xbean/kernel/ServiceMonitor.javahttp://svn.apache.org/repos/asf/geronimo/xbean/trunk/xbean-kernel/src/main/java/org/apache/xbean/kernel/KernelMonitor.java

I think projects should avoid logging too. (I'm still hoping someone tells me how the orb in Sun's J2SE logs... :)

Question about the monitors.... I'm curious - why didn't you generalize so that you could add more events as needed w/o breaking client software?

geir

Reply via email to