ruper2/src/java/core/org/krysalis/ruper/log Logger.java,1.10,1.11

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/log
In directory sc8-pr-cvs1:/tmp/cvs-serv24844/src/java/core/org/krysalis/ruper/log

Modified Files:
	Logger.java 
Log Message:
Tried getting ruper.xml to parse, and failed.

Index: Logger.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/log/Logger.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** Logger.java	9 Sep 2003 15:20:50 -0000	1.10
--- Logger.java	9 Sep 2003 21:49:07 -0000	1.11
***************
*** 51,55 ****
  			m_currentLogger = (Logger) m_stack.peek();
  		}
! 		
  		public Logger getCurrentLogger() {
  			return m_currentLogger;
--- 51,55 ----
  			m_currentLogger = (Logger) m_stack.peek();
  		}
! 
  		public Logger getCurrentLogger() {
  			return m_currentLogger;
***************
*** 101,123 ****
  
  	public static Logger getLog() {
! 		return ((LoggingContext)l_context.get()).getCurrentLogger();
  	}
  
  	public static Logger pushContext() {
! 		LoggingContext context = ((LoggingContext)l_context.get());		
  		Logger newLogger = new Logger(context.getCurrentLogger());
  		context.push(newLogger);
  		return newLogger;
  	}
! 	
  	public static Logger pushContext(Logger newContext) {
! 		((LoggingContext)l_context.get()).push(newContext);
  		return newContext;
  	}
  
  	public static void popContext(Logger expectedLogger) {
! 		((LoggingContext)l_context.get()).pop(expectedLogger);
  	}
! 	
  	public void addListener(int listenerType, LogListener listener) {
  		switch (listenerType) {
--- 101,130 ----
  
  	public static Logger getLog() {
! 		return ((LoggingContext) l_context.get()).getCurrentLogger();
! 	}
! 
! 	public static Logger pushContext(LogListener listener) {
! 		Logger newLogger = pushContext();
! 		// :TODO: Fix level, ask lisener what they want...
! 		newLogger.addListener(LogConstant.DEBUG_LISTENER, listener);
! 		return newLogger;
  	}
  
  	public static Logger pushContext() {
! 		LoggingContext context = ((LoggingContext) l_context.get());
  		Logger newLogger = new Logger(context.getCurrentLogger());
  		context.push(newLogger);
  		return newLogger;
  	}
! 
  	public static Logger pushContext(Logger newContext) {
! 		((LoggingContext) l_context.get()).push(newContext);
  		return newContext;
  	}
  
  	public static void popContext(Logger expectedLogger) {
! 		((LoggingContext) l_context.get()).pop(expectedLogger);
  	}
! 
  	public void addListener(int listenerType, LogListener listener) {
  		switch (listenerType) {




-------------------------------------------------------
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.