Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Hi Community,
I'm trying to run integration runtime with logback.xml. When I run below command in CMD
java -DconfigFile="integrationRuntime-settings.json" -Dlogs.includedLogback="logback.xml" -jar .\integration-runtime-8.0.14-b100.jar
Throws an error
logback.xml file content
<?xml version="1.0"?>
<included>
<property name="logs.dir" value="C:\\ThingworxStorage\\IRlogs" />
<property name="logs.uniqueId" value="${processId}" />
<property name="logs.maxFileSize" value="1MB" />
<property name="logs.maxIndex" value="5" />
<logger name="com.twx.integration" level="DEBUG" />
<logger name="org.apache.camel" level="DEBUG" />
<logger name="org.apache.http" level="DEBUG" />
</included>
Also, I'm looking for a way to set IR log level to DEBUG mode
Could anyone please help me on this
/VR
Solved! Go to Solution.
Hi @Rocko
Actually, commands work when I run CMD instead of Power Shell. With support of PTC case we found out this.
Resolution :
User Command prompt instead of power shell in windows machine.
/VR
Any chance you copied that directly from the help center? Can you re-type manually?
It looks like it takes the logback as classname, which indicates the dash/hyphen might be not the "right" one.
Hi @Rocko
Actually, commands work when I run CMD instead of Power Shell. With support of PTC case we found out this.
Resolution :
User Command prompt instead of power shell in windows machine.
/VR
Interesting, thanks for the update. Now knowing this, looking at your screenshot, I see that -Dconf and -Dlogs also got assigned different colors. The root cause is that your argument contains a dot and powershell is interpreting that.
This issue is discussed here: https://stackoverflow.com/questions/26614969/how-can-i-pass-batch-arguments-with-dots-into-a-powershell-script