Generic class used to write log files.
__init__(runtime_host: str, taskname: str) → NoneInitialization method.
Note:
The log file file be placed in directory named
runtime_hostwithin theEnvironment.main_directory.
Args:
runtime_host: The host of theRuntime, where the execution takes place.taskname: The name of theRuntimeTaskto be executed.
Get the full path to the directory where this logfile gets written to.
Get the full path to the log file.
Note:
Although, you can access the path, it does not necessary mean that it already exists. The file eventually gets written when the execution of the
RuntimeTaskis started.
get_write_mode() → strThis class contains environment variables.
set_main_directory(dir: str) → NoneSetter for the library's main directory on the manager.
Note:
A relative path ist also accepted and translated to an absolute path.
Args:
dir: Relative or absolute path.
set_third_party_log_level(log_level: int) → NoneSetter for third_party_log_level to control the standard python logging behavior of used libraries.
Affected libraries: paramiko
Note:
The class variable
third_party_log_leveldefaults tologging.Error, e.g. only paramiko errors will be shown.
Args:
log_level: Standard python log level values as defined inlogginglikelogging.ERROR.
use_lazycluster_dev_version() → NoneThis methods makes sure that the latest lazycluster developement version will be installed on the Runtimes.
This means the latest commit in the develop branch will be installed on the Runtimes.
Note:
Please make sure that you install the same version on the manager as well.
Custom Timestamp class with convenient methods.
__init__() → NoneInitializes the object with the current date/time.
get_formatted() → strFormatted fixed length representation with delimiters in format: yyyy-mm-dd hh:mm:ss.
get_unformatted() → strFixed length representation w/o delimiters in format: yyyymmddhhmmss.
This file was automatically generated via lazydocs.