cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Integration Runtime logback Error

Velkumar
18-Opal

Integration Runtime logback Error

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

Velkumar_0-1721893592765.png

 

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

ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

4 REPLIES 4
Rocko
17-Peridot
(To:Velkumar)

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 

 

I didn't copy it. I typed manually only.

 

/VR

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

Rocko
17-Peridot
(To:Velkumar)

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

 

Announcements

Top Tags