out" - "/var/log/cloud-final.err" Mode can be one of the configuration stages. If you pass a non-existent mode, it will assume the "all" mode configuration if defined. Stderr can be specified as &1 to indicate that it should be the same as stdout. If a file is specified with no redirection, it will default to appending to the file. If not overridden, output is provided in '/etc/cloud/config/cloud.cfg.d/05_logging.cfg' and defaults to: {"all": "| tee -a /var/log/cloud-init-output.log"} :param cfg: The base configuration that may or may not contain the 'output' configuration dictionary :param mode: The mode to get the output configuration for. :return: A list of two strings (or Nones), the first for stdout for the specified mode and the second for stderr. NrĪ