Hi. What logging options are available for python scripts on a Transport WR41 gateway? Is there any way to log to the device’s main event log?
Thanks!
Hi. What logging options are available for python scripts on a Transport WR41 gateway? Is there any way to log to the device’s main event log?
Thanks!
It depends what you are trying to achieve…
from BaseWizard import write_cli
eventlog = write_cli (“type eventlog.txt”)
print eventlog
or you could do
eventlog = open(“/eventlog.txt”)
eventlog_contents = eventlog.read()
print (eventlog_contents)
I read it the other way around.
To write to the event log:
from BaseWizard import write_cli
eventlog =write_cli(‘setevent “this is a test”’)