pub struct JormungandrLogger {
collected_logs: RefCell<Vec<LogEntry>>,
logs_collector: RefCell<OutputCollector>,
panics_collector: RefCell<OutputCollector>,
collected_panics: RefCell<Vec<String>>,
}
Fields§
§collected_logs: RefCell<Vec<LogEntry>>
§logs_collector: RefCell<OutputCollector>
§panics_collector: RefCell<OutputCollector>
§collected_panics: RefCell<Vec<String>>
Implementations§
source§impl JormungandrLogger
impl JormungandrLogger
pub fn new<R1, R2>(logs_source: R1, panics_source: R2) -> Selfwhere R1: Read + Send + 'static, R2: Read + Send + 'static,
fn collect_available_input(&self)
pub fn get_error_indicators() -> Vec<&'static str>
fn entries(&self) -> Ref<'_, Vec<LogEntry>>
fn panic_entries(&self) -> Ref<'_, Vec<String>>
pub fn get_log_content(&self) -> String
pub fn get_panic_content(&self) -> String
pub fn get_lines_as_string(&self) -> Vec<String>
pub fn get_lines(&self) -> Vec<LogEntry>
pub fn get_panic_lines(&self) -> Vec<String>
pub fn get_log_lines_with_level( &self, level: Level ) -> impl Iterator<Item = LogEntry>
pub fn contains_error(&self) -> bool
pub fn last_validated_block_date(&self) -> Option<BlockDate>
pub fn contains_any_of(&self, messages: &[&str]) -> bool
pub fn get_created_blocks_hashes(&self) -> Vec<Hash>
pub fn get_created_blocks_hashes_after( &self, reference_time: SystemTime ) -> Vec<Hash>
pub fn get_created_blocks_counter(&self) -> usize
fn filter_entries_with_block_creation(&self) -> impl Iterator<Item = LogEntry>
pub fn assert_no_errors(&self, message: &str)
fn try_parse_line_as_entry(line: &str) -> Result<LogEntry, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for JormungandrLogger
impl Send for JormungandrLogger
impl !Sync for JormungandrLogger
impl Unpin for JormungandrLogger
impl UnwindSafe for JormungandrLogger
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request