pub fn start_logging() -> Result<()>
Starts the logging and error handling. Can be used by unittests to get more insights.