Tuscany/TuscanyJava/DAS Java Overview/Improved loggingLogging OverviewOverview
Using log while contributting for Tuscany DAS code
- To instrument your code with logging capabilities
Note: As a performance enhancement, please surround your debug code with a check to see if debug is enabled or not. Configuring DAS logging (log4j)
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 ** For further information, please follow the link : Tomcat FAQ - Logging |