"log4j.properties" question

Hello!

I am new to Java and CloverETL. I have successfully designed several graphs against my Oracle database. Now, I am wondering how to make the runtime output of any graph I run more detailed?

I have attempted to modify my “log4j.properties” file from “log4j.rootLogger=INFO, A1” to “log4j.rootLogger=DEBUG, A1” but nothing happened. I copied my “log4j.properties” file to the directories in my CLASSPATH but nothing changed.

Is it possible to change the debug output? Can someone please give me some advice?

Thank you in advance.

Alan.

Hello David,

I did what you suggest and it works as expected.

Thanks for your support.

Alan.

Hello Alan !

There is log4j.properties bundled into CloverETL binary pacakge.
You need to either make any modifications there or delete it and supply your own properties file - in CLASSPATH somewhere.

You may use something like this which ensures that even DEBUG messages are sent to console:
*********************************
log4j.rootLogger=DEBUG, A1

# A1 is set to be a ConsoleAppender which outputs to System.out.
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout

# The conversion pattern uses format specifiers. You might want to
# change the pattern an watch the output format change.
log4j.appender.A1.layout.ConversionPattern=%-5p [%t] - %m%n

*********************************

David.