pub fn error_log(msg: &str, parameters: Option<LogParameters>)
Expand description
Creates an error message and prints the message to the log.
This message will create an annotation.
GitHub’s documentation: Setting an error message
§Example usage
use actions_github::logger;
logger::error_log("Did not find library", None);
§Custom annotations
You can also set custom annotations to mention a specific line in a file. See LogParameters for more info.
use actions_github::logger;
logger::error_log("Did not find library", Some(logger::LogParameters {
title: String::from("Library missing"),
file: String::from("Cargo.toml"),
line: 4,
end_line: 7
}));