as long as we are on the subject of logging...

a pattern that has worked very well for us, and other companies i've talked to is a static logging class. this makes life a lot easier, and allows you to swap out logging as desired, add convenience functions, even replace the whole thing with a empty methods

the basic idea is

class Logger
{
 public static void log(int level, String text)
{
  otherLogger.log(level,text) ; // or however you want to wrap it.
}
}

This way no loggers are passed around, no loggers are needlessly created, just have everything in the velocity package log through their static class.

Llewellyn.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to