ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Ws Wiki] Update of "Tuscany/TuscanyJava/DAS Java Overview/Improved logging" by lresende
Date Wed, 04 Oct 2006 16:25:32 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by lresende:
http://wiki.apache.org/ws/Tuscany/TuscanyJava/DAS_Java_Overview/Improved_logging

------------------------------------------------------------------------------
     - There is a logger factory available in org.apache.tuscany.das.rdb.util
     - To use it 
  
-        private final Logger logger = LoggerFactory.INSTANCE.getLogger(MappingWrapper.class);
+        private final Logger logger = !LoggerFactory.INSTANCE.getLogger(!MappingWrapper.class);
  
     - To instrument your code with logging capabilities
  
@@ -40, +40 @@

  '''Sample log4j.properties'''
  
  # Set root logger level to DEBUG and its only appender to A1.
+ 
  log4j.rootLogger=INFO, A1
  
  # A1 is set to be a ConsoleAppender.
+ 
  log4j.appender.A1=org.apache.log4j.ConsoleAppender
  
  # A1 uses PatternLayout.
+ 
  log4j.appender.A1.layout=org.apache.log4j.PatternLayout
  log4j.appender.A1.layout.ConversionPattern=[DAS RDB] - %c{1}.%M (%L) : %m %n
  
  # Print only messages of level WARN or above in the package com.foo.
+ 
  log4j.logger.org.apache.tuscany=OFF
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@ws.apache.org
For additional commands, e-mail: general-help@ws.apache.org


Mime
View raw message