User: oberg
Date: 00/05/30 11:32:29
Modified: src/main/org/jboss/logging Logger.java ViewerLogging.java
Log:
Major update. Too much to mention.
Revision Changes Path
1.2 +8 -2 jboss/src/main/org/jboss/logging/Logger.java
Index: Logger.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/logging/Logger.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Logger.java 2000/04/22 14:30:13 1.1
+++ Logger.java 2000/05/30 18:32:28 1.2
@@ -17,7 +17,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class Logger
extends NotificationBroadcasterSupport
@@ -48,12 +48,18 @@
l.log(message);
}
- public static void log(Throwable exception)
+ public static void exception(Throwable exception)
{
Log l = (Log)Log.getLog();
l.exception(exception);
}
+ public static void warning(String message)
+ {
+ Log l = (Log)Log.getLog();
+ l.warning(message);
+ }
+
public static void debug(String message)
{
Log l = (Log)Log.getLog();
1.2 +2 -2 jboss/src/main/org/jboss/logging/ViewerLogging.java
Index: ViewerLogging.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/logging/ViewerLogging.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ViewerLogging.java 2000/04/22 14:30:13 1.1
+++ ViewerLogging.java 2000/05/30 18:32:28 1.2
@@ -17,7 +17,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class ViewerLogging
implements ViewerLoggingMBean, MBeanRegistration, NotificationListener
@@ -85,7 +85,7 @@
// tableModel.addRow(new Object[] { fmt.format(n.getTimeStamp()),
n.getUserData(), n.getMessage() });
} catch (Throwable e)
{
- Logger.log(e);
+ Logger.exception(e);
}
}