OpenVPMS Loader - how to prevent Info output
Submitted by Guest on Sat, 29/03/2014 - 05:56
I am running a kettle transform from the command line using kitchen.bat
As you can see from the snippet below there is lots of Info output from the OpenVPMS Loader. How do I turn it off? [You can see from the bat file contents in the Notepad window that I am invoking kettle with level:Error - this is getting rid of all the other kettle output except for these Info messages from the OpenVPMS loader.]
Here is the transform in Kettle
and here is the last of the 3 steps which use the the OpenVPMS Loader - it is nothing magic.
I think that the fix is to put a copy of the <OPENVPMS_HOME>\conf\log4j.properties file somewhere (the c:\kettle directory ??) and edit it to tell the OpenVPMS loader to stop spraying out these Info messages.
Regards, Tim G
Re: OpenVPMS Loader - how to prevent Info output
Edit spoon.bat/spoon.sh and explicitly configure log4j. E.g. for spoon.bat
The
tells it to look for a log4j.properties file in the current directory. E.g.
# Global logging configuration log4j.rootLogger=warn, stdout, fileout # Console output log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.conversionPattern=[%p,%c{1},%t] %m%n # Rolling log file output log4j.appender.fileout=org.apache.log4j.RollingFileAppender log4j.appender.fileout.File=spoon.log log4j.appender.fileout.MaxFileSize=100000KB log4j.appender.fileout.MaxBackupIndex=1 log4j.appender.fileout.layout=org.apache.log4j.PatternLayout log4j.appender.fileout.layout.conversionPattern=%d{DATE} %5p %c{1},%t:%L - %m%n
Re: OpenVPMS Loader - how to prevent Info output
Tim A - apologies - I should have replied earlier. The above did the the trick. Thanks, Tim G