Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
We are aware of using the application log or script log when error arises. But, sometimes it also happens like when you check the application log for an error, it again says to check the log, like check log for more details. We get quite confused at such points. It would be helpful if you could give any input on this.
Hi muzzammil
Can you describe your error and supply log files for us to better understand your issue?
Usually you will see this "check log for more details." in ApplicationLog. It means you may find more details if checking other kinds of log files, such ScriptLog, ScriptErrorLog.
I also went for checking the other logs, but couldn't really find the error's source. How can i tackle such problems in the future?
I would like to suggest you setting a high level for realted logs, such as Trace or Debug.
Usually, the error source which is the name of target Thing/Service/Subscription, will be output in log file.
sorry, i didn't get you. Could you elaborate?
Please go to top menu<Monitoring->Application>, chose setting tab, change a higher level for related log files.
Then check log file to see if any thing name or service name is output into the log.
For example, a service error in my testing instance brought below error.
kepThing0208 is thing name,GetInfotablePropertyValue is service name, coding in 24 line triggerred this error.
2019-02-12 14:35:14.412+0900 [L: ERROR] [O: S.c.t.d.e.DSLProcessor] [I: kepThing0208] [U: Administrator] [S: ] [T: http-nio-9080-exec-1] [message: Execution error in service script [GetInfotablePropertyValue] :: Index: 1, Size: 0]
at GetInfotablePropertyValue:24
do you mean to say that i should go for choosing 'ALL' for all logs?
All is the highest level, usually Trace will be enough.
Just level up logs per your need. Ex, if you want to trace a service, level up script log. If you want to trace Websocket communication, level up conmmunicationlog. ApplicationLog should always be leveled up as it is the basic logging.
Kindly look at the above screenshot and tell which log level could best be chosen for each logs
if you want to trace service or subscription , just set Trace for ApplicationLog/ScriptLog.
Yeah..thank you..Also..could you tell the default settings of all the logs?
The issue that i'm facing is in spotting the error in my script which i couldn't get from script log. Kindly help us in resolving the issue.
Hi Muzzammil
Sorry to reply late. Do you mind opening a case from below link so a local ThingWorx technical support enginner will contact you and supply in-time reply?
https://www.ptc.com/en/support/article?n=CS67798
If yes, please also attach your screen shot and ALL ThingWorx log files into the case.
ThingWorx log files are ususally placed under “C:\ThingworxStorage\logs” or ”\ThingworxStorage\logs”.
Thanks!
Hi @muzzammil , you can also use enablestacktrace logging in logging subsystem only when you are troubleshooting.
Regards
Ankur