pub struct Logger { /* private fields */ }
Expand description
A Hurl dedicated logger for an Hurl file. Contrary to BaseLogger
, this logger can display
rich error for parsing and runtime errors.
Implementations§
source§impl Logger
impl Logger
sourcepub fn new(options: &LoggerOptions, term: Stderr) -> Self
pub fn new(options: &LoggerOptions, term: Stderr) -> Self
Creates a new instance.
pub fn info(&mut self, message: &str)
pub fn debug(&mut self, message: &str)
pub fn debug_important(&mut self, message: &str)
pub fn debug_curl(&mut self, message: &str)
pub fn debug_error<E: Error>( &mut self, content: &str, error: &E, entry_src_info: SourceInfo )
pub fn debug_headers_in(&mut self, headers: &[(&str, &str)])
pub fn debug_headers_out(&mut self, headers: &[(&str, &str)])
pub fn debug_status_version_in(&mut self, line: &str)
pub fn warning(&mut self, message: &str)
pub fn error(&mut self, message: &str)
pub fn error_parsing_rich<E: Error>(&mut self, content: &str, error: &E)
pub fn error_runtime_rich<E: Error>( &mut self, content: &str, error: &E, entry_src_info: SourceInfo )
pub fn debug_method_version_out(&mut self, line: &str)
pub fn capture(&mut self, name: &str, value: &Value)
pub fn stderr(&self) -> &Stderr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more