What about making the getLogger()-method in Domain.java public? This would 
allow classes without access to the namespace to use the domain logger.
A tiny patch for this is attached.
I'd like to clean up the logging in slide some day in the future (by switching 
to jdk-logging). What do you think about it? It's not the most sophisticated 
task to do it, but I think it's worth to do it.


Am Mittwoch, 28. Januar 2004 12:43 schrieb Daniel Florey:
> Hi,
> can someone explain how to use logging in slide?
> How can I access the logger from a class that has no namespace access? Is
> there a way to get the logger via a static method (as it is possible in
> java-logging or log4j)?
> Many thanks for any hints!
>
> Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
Index: Domain.java
===================================================================
RCS file: /home/cvspublic/jakarta-slide/src/share/org/apache/slide/common/Domain.java,v
retrieving revision 1.42
diff -w -u -w -r1.42 Domain.java
--- Domain.java 12 Dec 2003 02:48:30 -0000      1.42
+++ Domain.java 28 Jan 2004 16:21:20 -0000
@@ -731,7 +731,7 @@
      *
      * @return The domain logger
      */
-    static Logger getLogger() {
+    public static Logger getLogger() {
         return Domain.logger;
     }
     

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

Reply via email to