gs.log vs. gs.print: the docs entry for gs.log says it logs to TWO places "system log" and "syslog table".

Dave Hinton
Tera Contributor

(gs.log vs. gs.print): the docs entry for gs.log says it logs to TWO places "system log" and "syslog table".
Are these TWO places really distinct?
... Aren't these one and the same?
How do I view them both?

6 REPLIES 6

D_vid Novotn_
Tera Contributor

gs.print(): This method does not write the message to the syslog table unless debug has been activated

gs.log(): Logs a message to the system log and saves it to the syslog table.

Ideally use gs.info() - as the print and log are available only in global scope

SumanthDosapati
Mega Sage
Mega Sage

gs.print will not store printed value in syslog table //you can use it in background scripts for example(in Global only) 

gs.log wlill store value in log table.  //you can use it in any server scripts (in Global only)

Dave Hinton
Tera Contributor

Regurgitating the already ambiguous text from Docs is less than useful.

Perhaps I was not clear with my question.

The question is: What is the difference between the "system log" and the "syslog table"?

@Dave Hinton ,

"syslog" is the table backend name for log table. (Also called as Log entry table or system log table)

"System Log" is just an application menu in the left navigator but there is no such table name.

 

All the logs for gs.log, gs.info, gs.error will be logged into syslog table only.
You can open log table by typing syslog.list in navigator.

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth