Skip to main content
Dec 7, 2021 7:02 AM UTC
Solved

ThingWorx logs inside Tomcat logs

Hi,

We have 2 questions regarding the logs in ThingWorx.

  1. In the thingworx foundation stderr logs, its returning all the logs from info to error. Is there an option to log only errors in the file?

     2. How to break the thingworx stderr & stdout file based on date or size? Because right now everyday logs           are logged in the same file unless it the tomcat service is restarted.svisveswaraiya_0-1638860446847.png

 

Thanks in advance,

ShaliniV

slangleyAnswer
Dec 16, 2021 8:30 PM UTC

Hi @svisveswaraiya_285745.

 

You're actually referring to the logs located in <tomcat_home>\logs, correct?  Here is a link to an article that may be helpful for limiting the size of the logs.  For limiting the content of the messages, there is a level option that may allow you to tweak what gets written:

 

Example:  <File Handler>.java.util.logging.FileHandler.level = FINE

 

You can refer to this page for the logging levels.  This will need to be applied to any of the file handlers you wish to adjust.

 

Regards.

 

--Sharon

 

 

 

 

1 reply

slangleyAnswer
Dec 16, 2021 8:30 PM UTC

Hi @svisveswaraiya_285745.

 

You're actually referring to the logs located in <tomcat_home>\logs, correct?  Here is a link to an article that may be helpful for limiting the size of the logs.  For limiting the content of the messages, there is a level option that may allow you to tweak what gets written:

 

Example:  <File Handler>.java.util.logging.FileHandler.level = FINE

 

You can refer to this page for the logging levels.  This will need to be applied to any of the file handlers you wish to adjust.

 

Regards.

 

--Sharon