log

The object which puts a message into Pylatus log window and, consequently, into Pylatus log file. (log script source code)

In Pylatus Script editor the log object is already imported into Python interpreter, but if you have external .py files, then you can import it as:

from auxygen_log import PyLogger

log = PyLogger()

Important: unlike other objects, log does not create a sequence action but runs directly and immediately, i.e. it changes the Pylatus script editor to a prompt, then the Python interpreter blocks until the spec command is finished. If you need to run a log macro as a sequence action, consider using to_sequence decorator.

Instance methods


info

log.info("Simple info message")

Prints an info message into Pylatus log window and, consequently, into Pylatus log file.


warn

log.warn("Warning message")

Prints a warning message into Pylatus log window and, consequently, into Pylatus log file.


error

log.error("Error message")

Prints an error message into Pylatus log window and, consequently, into Pylatus log file.