Skip to main content
Jul 2, 2021 9:52 AM UTC
Solved

Info Log issue

ThingWorx 8.5.0-b12 :

 

I used logger.info("Information") in a service in the above version of Thingworx. But it is not displaying info logs.

 

Can you please verify and confirm?

yhanAnswer
Jul 2, 2021 10:08 AM UTC

If I follow below steps I can see the info level message both in the monitoring tool and script log under storage folder:

1. Monitoring > ScriptLog > Configure > set log level to Info

2. create a service like below and execute

7-2-2021 6-03-02 PM.jpg

3. Check Monitoring > ScriptLog, I can see the info message

7-2-2021 6-04-41 PM.jpg

4. Check the script log under storage folder, the info message is also there

7-2-2021 6-06-21 PM.jpg

 

If you still don't see the info when you follow the above steps, please check if you enable LoggingSubsystem > Configuration > Enable Script Strack Tracing

3 replies

Jul 2, 2021 9:56 AM UTC

Do you already configure Log level to info of scriptLog? If not you should visit Monitoring > ScriptLog > Configure > set log level to Info.

Jul 2, 2021 9:58 AM UTC

I have done that and checked log files in ThingworxStorage too.

yhanAnswer
Jul 2, 2021 10:08 AM UTC

If I follow below steps I can see the info level message both in the monitoring tool and script log under storage folder:

1. Monitoring > ScriptLog > Configure > set log level to Info

2. create a service like below and execute

7-2-2021 6-03-02 PM.jpg

3. Check Monitoring > ScriptLog, I can see the info message

7-2-2021 6-04-41 PM.jpg

4. Check the script log under storage folder, the info message is also there

7-2-2021 6-06-21 PM.jpg

 

If you still don't see the info when you follow the above steps, please check if you enable LoggingSubsystem > Configuration > Enable Script Strack Tracing