Struct hersir::controller::monitor::node::JormungandrLogger
source · pub struct JormungandrLogger {
collected_logs: RefCell<Vec<LogEntry, Global>>,
logs_collector: RefCell<OutputCollector>,
panics_collector: RefCell<OutputCollector>,
collected_panics: RefCell<Vec<String, Global>>,
}
Fields§
§collected_logs: RefCell<Vec<LogEntry, Global>>
§logs_collector: RefCell<OutputCollector>
§panics_collector: RefCell<OutputCollector>
§collected_panics: RefCell<Vec<String, Global>>
Implementations§
source§impl JormungandrLogger
impl JormungandrLogger
pub fn new<R1, R2>(logs_source: R1, panics_source: R2) -> JormungandrLoggerwhere R1: Read + Send + 'static, R2: Read + Send + 'static,
pub fn get_error_indicators() -> Vec<&'static str, Global>
pub fn get_log_content(&self) -> String
pub fn get_panic_content(&self) -> String
pub fn get_lines_as_string(&self) -> Vec<String, Global>
pub fn get_lines(&self) -> Vec<LogEntry, Global>
pub fn get_panic_lines(&self) -> Vec<String, Global>
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, Global>
pub fn get_created_blocks_hashes_after( &self, reference_time: SystemTime ) -> Vec<Hash, Global>
pub fn get_created_blocks_counter(&self) -> usize
pub fn assert_no_errors(&self, message: &str)
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