[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/common/

emcho at dev.java.net emcho at dev.java.net
Wed May 26 11:08:33 CEST 2004


User: emcho   
Date: 04/05/26 02:08:33

Modified:
 /sip-communicator/src/net/java/sip/communicator/common/
  Console.java

Log:
 Ongoing work on simple

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/common/
==================================================================

File [changed]: Console.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/common/Console.java?r1=1.6&r2=1.7
Delta lines:  +28 -1
--------------------
--- Console.java	13 Jul 2003 14:55:55 -0000	1.6
+++ Console.java	26 May 2004 09:08:30 -0000	1.7
@@ -326,21 +326,48 @@
         logger.isDebugEnabled();
     }
 
+    public boolean isTraceEnabled()
+    {
+        return logger.getLevel() ==null || logger.getLevel().equals(TraceLevel.TRACE);
+    }
+
+    public void setToTraceLevel()
+    {
+        logger.setLevel(TraceLevel.TRACE);
+    }
+
+
     public boolean isDebugEnabled()
     {
         return logger.isDebugEnabled();
     }
 
+    public void setToDebugLevel()
+    {
+        logger.setLevel(Level.DEBUG);
+    }
+
     public boolean isInfoEnabled()
     {
         return logger.isInfoEnabled();
     }
 
+    public void setToInfoLevel()
+    {
+        logger.setLevel(Level.INFO);
+    }
+
     public boolean isWarnEnabled()
     {
         return logger.isEnabledFor(Priority.WARN);
     }
 
+    public void setToWarnLevel()
+    {
+        logger.setLevel(Level.WARN);
+    }
+
+
     //------------------------------- TEST --------------------------------
     public static void main(String[] args)
     {




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net




More information about the commits mailing list