sailfish.driver.init_logging
- sailfish.driver.init_logging()[source]
Convenience method to enable logging to standard output.
This function is called from the main entry point (i.e. when sailfish is used as a command line tool). However when sailfish is used as a library, logging is not enabled by default (Python’s logging module recommends that libraries should not install any event handlers on the root logger). This function enables a sensible logging configuration, so if the calling application or script is not particular about how logging should take place, but it doesn’t want the driver to be silent, then invoking this function will do it for you. Note this function is also invoked by the run function if
quiet=False
is passed to it.