Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 3 of 3

Thread: Add Logentry from JS

  1. #1

    Default Add Logentry from JS

    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...

  2. #2
    Senior Member
    Join Date
    Jan 2002
    Location
    The Netherlands
    Posts
    930

    Default

    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.).

  3. #3

    Default

    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...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts