Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/log
In directory sc8-pr-cvs1:/tmp/cvs-serv17764/src/java/core/org/krysalis/ruper/log
Modified Files:
Logger.java
Log Message:
1) Unit test for messages
2) Fallback to "en" if messages in default locale not available
3) First stab at loading ruper.xml from a resource (classloader) not just file
Index: Logger.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/log/Logger.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** Logger.java 22 Sep 2003 17:09:42 -0000 1.13
--- Logger.java 22 Sep 2003 20:18:29 -0000 1.14
***************
*** 104,108 ****
return pushContext(LogConstant.DEBUG_LISTENER, listener);
}
!
public static Logger pushContext(int level, LogListener listener) {
Logger newLogger = pushContext();
--- 104,108 ----
return pushContext(LogConstant.DEBUG_LISTENER, listener);
}
!
public static Logger pushContext(int level, LogListener listener) {
Logger newLogger = pushContext();
***************
*** 166,170 ****
// Note: Falls through to VERBOSE...
}
!
case LogConstant.VERBOSE_LISTENER :
{
--- 166,170 ----
// Note: Falls through to VERBOSE...
}
!
case LogConstant.VERBOSE_LISTENER :
{
***************
*** 172,176 ****
// Note: Falls through to INFO...
}
!
case LogConstant.INFO_LISTENER :
{
--- 172,176 ----
// Note: Falls through to INFO...
}
!
case LogConstant.INFO_LISTENER :
{
***************
*** 204,208 ****
}
-
// VERBOSE
public void verbose(Object message) {
--- 204,207 ----
***************
*** 267,270 ****
--- 266,275 ----
}
}
+ }
+
+ public static void testInit() {
+ getLog().addListener(
+ LogConstant.DEBUG_LISTENER,
+ new SimpleLogListener());
}
}
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.