Struct openethereum::RotatingLogger
source · [−]Expand description
Logger implementation that keeps up to LOG_SIZE
log elements.
Fields
levels: String
Defined logger levels
logs: RwLock<RawRwLock, ArrayVec<[String; 128]>>
Logs array. Latest log is always at index 0
Implementations
sourceimpl RotatingLogger
impl RotatingLogger
sourcepub fn new(levels: String) -> RotatingLogger
pub fn new(levels: String) -> RotatingLogger
Creates new RotatingLogger
with given levels.
It does not enforce levels - it’s just read only.
Auto Trait Implementations
impl !RefUnwindSafe for RotatingLogger
impl Send for RotatingLogger
impl Sync for RotatingLogger
impl Unpin for RotatingLogger
impl UnwindSafe for RotatingLogger
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more