Hi, I have seen some cases where loggers are defined as "public", some as "protected", some as "private", and some as the default package level visibility. Along the same lines, I have seen cases where loggers are defined as "static" and others non-static. I have also seen some cases where the logger is defined as "final".
What would be the "best practice" here? Would it depend on the application? Is there an advantage for subclasses to have access to the parent class logger as those defined as "public" and "protected" would be visible to subclases? Shouldn't subclasses be using their own loggers? I would think that the following would be the best practice: final private static Logger logger = Logger.getLogger{MyClass.class.getName()); Is this the case? I'm really just trying to get some validation here. Are there any disadvantages to the above? Thanks, Jake -- Best regards, Jacob mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>