pub fn set_panic_endpoint<E>(endpoint: E) -> Result<(), LogError> where
    E: TryInto<Endpoint, Error = LogError>, 
Expand description

Set the logging endpoint where the message from Rust panics will be written.

By default, panic output is written to the stderr endpoint. Calling this function will override that default with the endpoint, which may be provided as a string or an Endpoint.

fastly::log::set_panic_endpoint("my_error_endpoint").unwrap();
panic!("oh no!");
// will log "panicked at 'oh no', your/file.rs:line:col" to "my_error_endpoint"