OpenVPMS Loader - how to prevent Info output

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: OpenVPMS Loader - how to prevent Info output

Edit spoon.bat/spoon.sh and explicitly configure log4j. E.g. for spoon.bat

set OPT=-Xmx256m -cp %CLASSPATH% -Djava.library.path=libswt\win32\ -DKETTLE_HOME="%KETTLE_HOME%" -DKETTLE_REPOSITORY="%KETTLE_REPOSITORY%" -DKETTLE_USER="%KETTLE_USER%" -DKETTLE_PASSWORD="%KETTLE_PASSWORD%" -DKETTLE_PLUGIN_PACKAGES="%KETTLE_PLUGIN_PACKAGES%" -DKETTLE_LOG_SIZE_LIMIT="%KETTLE_LOG_SIZE_LIMIT%" -Dlog4j.configuration=file:./log4j.properties

The

-Dlog4j.configuration=file:./log4j.properties

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

Syndicate content