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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to get the logs in a file format?

bmarimuthu-2
1-Newbie

How to get the logs in a file format?

How to get the all my custom log details  in a file format?

4 REPLIES 4

Could you please clarify what you mean by "custom log details"?

You may find your application logs in ThingworxStorage/logs directory.

ankigupta
5-Regular Member
(To:bmarimuthu-2)

Hi Bavithraa Marimuthu​,

I hope that by custom logs you are referring to the Script logs which are generated when any service runs in ThingWorx composer.

They are available at <Root>/ThingworxStorage/logs/ScriptLog.log

I hope it helps.

In <Root>/ThingworxStorage/logs/ScriptLog.log, it has the info of all logs. But I want only my defined (custom) logs to be captured that too in a file format Eg: xxxx.log

How can I do this ?

ankigupta
5-Regular Member
(To:bmarimuthu-2)

One option could be to create a custom service and use GetLogEntries Service of ScriptLog entity and then filter based on the requirement.

Then we can use Data Exporter widget to export the log data to a file in a ThingWorx repository.

I hope it helps.

Announcements


Top Tags