Function cwe_checker_lib::utils::log::print_all_messages
source · pub fn print_all_messages(
logs: Vec<LogMessage>,
cwes: Vec<CweWarning>,
out_path: Option<&str>,
emit_json: bool
)
Expand description
Print all provided log- and CWE-messages.
Log-messages will always be printed to stdout
.
CWE-warnings will either be printed to stdout
or to the file path provided in out_path
.
If emit_json
is set, the CWE-warnings will be converted to json for the output.