Skip to main content
1-Visitor
December 7, 2021
Solved

ThingWorx logs inside Tomcat logs

  • December 7, 2021
  • 1 reply
  • 1439 views

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

Best answer by slangley

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

slangleyCommunity ManagerAnswer
Support
December 16, 2021

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