dcsimg
Blank lins on eclipse console.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Victor_Sauermann
Posted On:   Monday, April 3, 2006 03:47 AM

Hello! I'm using log4j with multiple loggers and appenders for a multithreaded software. I now encountered the problem that in case that the standard console appender is set to different loggers and all are switched to log category FATAL, the console prints rarely an output (because of log category FATAL) but a big amount of blank lines. I set the log category to DEBUG and there are no more blank lines anymore. I checked this for several different log categories and now I'm sure: log4j doesn't supress the not logable outputs but prints a blank line for each suppresed log message. In debug all lines are present. Exmple: 2006-04-03 09:32:46,363 INFO [pool-1-thread-21] ( Abs   More>>

Hello!


I'm using log4j with multiple loggers and appenders for a multithreaded software.

I now encountered the problem that in case that the standard console appender is set to different loggers and all are switched to log category FATAL, the console prints rarely an output (because of log category FATAL) but a big amount of blank lines. I set the log category to DEBUG and there are no more blank lines anymore.

I checked this for several different log categories and now I'm sure: log4j doesn't supress the not logable outputs but prints a blank line for each suppresed log message. In debug all lines are present.



Exmple:

2006-04-03 09:32:46,363 INFO [pool-1-thread-21] ( AbstractSiDaNetAutomaton.java) - [EVALD1_B] (Current request: 71)timeout() - Current state: CONNECTED

2006-04-03 09:32:46,363 INFO [pool-1-thread-20] ( OperatorThread.java) - [EVALD1_B] (-)run() - Automaton will process new request: SMP_PD_IE_TYPE_ST

2006-04-03 09:32:46,363 INFO [pool-1-thread-20] ( AbstractSiDaNetAutomaton.java) - [EVALD1_B] (Current request: 80)requestOperation(SMP_PD_pdu) - Current state: CONNECTED:REQUESTING

(blank line)

(blank line)

(blank line)

(blank line)

(blank line)

(blank line)

(blank line)

(blank line)

(blank line)

(blank line)

2006-04-03 09:32:46,423 INFO [pool-2-thread-8] ( AbstractSiDaNetAutomaton.java) - [EVALD1_B] (Current request: 80)notifyRequestCompleted(Request) - A request was returned successfully!

2006-04-03 09:32:46,423 INFO [pool-2-thread-8] ( AbstractSiDaNetAutomaton.java) - [EVALD1_B] (Current request: 80)connectSuccess() - Current state: CONNECTED:RECEIVING

2006-04-03 09:32:46,423 INFO [pool-



One thing: On the rolling file appender this phenomenom won't happen.

   <<Less
About | Sitemap | Contact