- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2012 10:10 AM
I have a confusion when to use what i.e. gs.log() or gs.print() as both [gs.log() and gs.print()] writes to system log file.
Anybody please explain the difference...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-12-2012 06:28 AM
I believe gs.print() will write an entry to the Log File, while gs.log() will write to both the System Log and the Log File as well as give you an option to specify the Source. Both default to "*** Script".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2019 05:55 PM
Could you please let me know which is System log and which is application log, Log file and where to find in the nav bar??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2014 09:47 AM
gs.log takes 2 arguments, level and message.
gs.print takes 1 argument, message.
gs.log is more robust but both are highly redundant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2014 10:42 AM
Thanks Antony Mirza for asking this valuable question.
i got your points like
gs.log("hi","how are you") have 2 parameter (traceProperty,caller)
gs.log("let","me know"); writes a message to system log and syslog table.
gs.print("hello"); have 1 parameter (message)
gs.print("welcome"); writes a message to system log only
is that correct??? are anything else i have to know about this
I want little more clarification about gs.log() with clear definition with example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2016 06:05 AM
Hello Antony,
eric.szonyi is right, gs.print() will only print in the application log (Tomcat log file) while gs.log() will print in both application log and syslog table (System Logs).
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 01:46 AM
Thank you all for your valuable inputs!!!