Customer Portal

"log4j.properties" question

Comments 2

  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hello David,

    I did what you suggest and it works as expected.

    Thanks for your support.

    Alan.
  • Avatar
    oldforum
    0
    Comment actions Permalink
    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.

Please sign in to leave a comment.