Hello,
I want to write Logentries from a JS script. And Some Entries shold only be written if the debug Optien in SC.ini is set.
Is this possible? And how??
Thanks...
Hello,
I want to write Logentries from a JS script. And Some Entries shold only be written if the debug Optien in SC.ini is set.
Is this possible? And how??
Thanks...
AFAIK getting JS to register in the log file, you would need to call system.functions.rtecall("log", $L.rc, "<text>").
I don't think you can identify sm.ini parameters on the fly without doing special things (reading file on startup, etc.).
Thanks for your fast answer!
As I understand this, this rtecall only writes the <Text>-value to the sc.log.
The print() function does the same, if the JS is called from the Backround(f.e. as scheduler).
What I need is to know that the SC debug is enabled...
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks