Threre seems to be a problem when using Logger.trace("") on some pattern 
conversion characters in opposite to Logger.log(Level.TRACE, "") which works 
correctly.
  Those caracters seem to be all location collecting parameters like C, M, L.(I 
know that they are using a lot of CPU time ... )
   
  This is the code to reproduce: 
   
  definition of the logger
   
      public static Logger cat = Logger.getLogger(TestLogging.class);
   
  Initialization:
   
      PatternLayout layout = new PatternLayout( "%d{ISO8601} %-5p [%t] %-12.12C 
| %-12.12M  (%5.5L) | %m %n" );
    ConsoleAppender consoleAppender = new ConsoleAppender( layout );
    cat.setLevel(Level.ALL );
    cat.addAppender( consoleAppender );
   
  Using it:
  
    cat.fatal("FATAL");
    cat.trace("TRACE_1"); 
    cat.log(Level.TRACE , "TRACE_2");
   
  And here is the output. The second line shows the issue that C, M, L are not 
working.
   
      2005-11-17 14:54:23,944 FATAL [main] TestLogging  | main          (   24) 
| FATAL 
    2005-11-17 14:54:23,964 TRACE [main] ?            | ?             (    ?) | 
TRACE_1 
    2005-11-17 14:54:23,964 TRACE [main] TestLogging  | main          (   26) | 
TRACE_2 
   
  Any hints?
  Thanks
  Ju

                
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

Reply via email to