Friday, March 23, 2012

Enabling standard log4j logging in Kettle (PDI)


I had the need to see mondrian logs in spoon, to debug a few things. But kettle doesn't have any existing log4j.xml file that I can use to edit the info I want. Easy enough to fix though.

  1. Edit spoon.sh (or the equivalent on your operating system)
  2. In the end of the file, look for a like that starts with OPT="..."
  3. Add "-cp . " to the beginning of the line, staying with something like: OPT="-cp . $OPT (...)"
  4. Drop a log4j.xml file to the same dir as spoon.sh

And voilá.

1 comment:

  1. Nice, see the feature request for this: http://jira.pentaho.com/browse/PDI-1791

    Cheers,
    Jens

    ReplyDelete