Logging Overview


Using log while contributting for Tuscany DAS code

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.


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


Tuscany/TuscanyJava/DAS_Java_Overview/Improved_logging (last edited 2009-09-20 22:48:57 by localhost)