Skip to main content
May 4, 2017
Question

How to get the logs in a file format?

  • May 4, 2017
  • 2 replies
  • 2522 views

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

    2 replies

    20-Turquoise
    May 4, 2017

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

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

    5-Regular Member
    May 5, 2017

    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.

    May 5, 2017

    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 ?

    5-Regular Member
    May 5, 2017

    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.