Logs
The ThingWorx logs record information, show what is running, and list errors. Some logs are available in Composer under Monitoring > [choose the log name], and some are only available at ThingworxStorage/logs. The log level determines how much granularity to display in the log. You can set the log level for each Composer log under Monitoring > [choose the log name] > Configure. The logs are kept in separate files on the server under /ThingworxStorage/logs.
* 
Monitor your log sizes and purge them regularly by backing up the files first and then discarding them.
Composer Logs
For logs within Composer, you can filter log data by timestamp, log level, user, and so on. You can also limit the number of rows to display. The data written to a particular log is determined by the settings configured in the System Property Editor.
Log Name
Description
Application Log
The Application Log contains all of the messages that ThingWorx logs while operating. Depending on your settings, this log can display errors only or every execution of the platform.
Communication Log
The Communication Log contains all communication activity with ThingWorx.
Configuration Log
The Configuration Log contains all of the messages that the ThingWorx application generates for any create, modify, and delete done in ThingWorx. For example, if a Thing or Mashup is created, modified, or deleted, that information will be included in the Configuration Log.
* 
This is currently not usable for roll-backs.
Script Log
The Script Log contains all of the messages that the ThingWorx application generates while executing JavaScript services. You can use logger.warn (or logger.info, logger.trace, logger.debug, logger.error). By default, the log displays warnings and errors, so we recommend using the .warn function to log this information from the services you are running. Generally, ThingWorx will only publish errors that were incurred while running a service to this log.
* 
By default, the script timeout setting on the ThingWorx Platform is 30 seconds. If a script runs longer, the platform terminates the execution. A ThingWorx administrator can configure the script timeout in the Basic Settings section of the platform-settings.json configuration file. See platform-settings.json Configuration Details.
Security Log
The Security Log contains all of the messages that the ThingWorx application generates regarding users. This information can include login data and page requests depending on the log level.
Other Logs
The following logs are not visible in Composer and are only available on the server at ThingworxStorage/logs.
Log Name
Description
Auth Log
The Auth log contains Auth login info and is only available in the Auth.log file located in ThingworxStorage/logs.
Database Log
The Database Log contains all messages related to database activity. This DatabaseLog.log file is only available in ThingworxStorage/logs.
Script Error Log
The Script Error Log contains the stack trace for scripts created in the platform and is only available in the ScriptErrorLog.log file located in ThingworxStorage/logs.
Was this helpful?