I need to determine whether the named Logger category actually exists
without creating a default. The method "getLogger( final String
categoryName )" on the class DefaultLogKitManager will create the Logger if
it does not exist. My requirement has to do with not losing logged messages
or sending them to the wrong place (which could happen if the wrong default
is instantiated).
What are the chances of adding a method to
org.apache.avalon.excalibur.logger.DefaultLogKitManager such as follows as
then the client could throw an exception if the logger does not exist:
public final boolean isLoggerDefined(String categoryName)
{
final Logger logger = (Logger) m_loggers.get( categoryName );
return ( null != logger )
}
Naturally, we need to add the method to the interface
org.apache.avalon.excalibur.logger.LogKitManager thus:
abstract public boolean isLoggerDefined(String categoryName);
I could not find any other references to the interface in the Excalibur or
Avalon packages but I realize that there may be elsewhere.
Perhaps someone else may have a better suggestion.
****************************************************************
NOTICE - This message is intended only for the use of the
addressee named above and may contain privileged and
confidential information. If you are not the intended recipient
of this message you are hereby notified that you must not
disseminate, copy or take any action based upon it. If you
received this message in error please notify HIC immediately.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of HIC.
****************************************************************
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>