Skip to main content

write_error_log

Function write_error_log 

Source
pub fn write_error_log(
    path: &Path,
    app_id: Option<&str>,
    method: Option<&str>,
    request_path: Option<&str>,
    status_text: Option<&str>,
    reason: Option<&str>,
) -> i32
Expand description

Appends one bounded access-log line to a runtime-owned log file.

§Parameters

§Returns

Returns the computed value produced by crate::runtime::ops_bridge::write_error_log.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::ops_bridge::write_error_log.

§Examples

ⓘ
let _result = pharos_native::runtime::ops_bridge::write_error_log(std::path::Path::new("fixture.json"), todo!(), todo!(), "/", "400 Bad Request", todo!());