Skip to content

Add rotating log file path configuration option

Samuel Debionne requested to merge add-log-file-path into develop

Current behavior was to write the log in the CWD that could lead to:

Error: libs/log/src/text_file_backend.cpp(1496): Throw in function consume
Dynamic exception type: boost::wrapexcept<boost::filesystem::filesystem_error>
std::exception::what: Failed to open file for writing: Input/output error [generic:5]: "/lima2_0.log"

when started from supervisor (if CWD not properly configured).

  • Refactor log to .cpp to improve compile time.
  • Adds add_console_log() and add_file_log() to the logging API.
  • Add log-file-path and log-file-filename options to the command line of lima2_tango.

Merge request reports

Loading