Struct ethcore_logger::RotatingLogger
[−]
[src]
pub struct RotatingLogger { /* fields omitted */ }
Logger implementation that keeps up to LOG_SIZE
log elements.
Methods
impl RotatingLogger
[src]
pub fn new(levels: String) -> Self
[src]
Creates new RotatingLogger
with given levels.
It does not enforce levels - it's just read only.
pub fn append(&self, log: String)
[src]
Append new log entry
pub fn levels(&self) -> &str
[src]
Return levels
pub fn logs(&self) -> RwLockReadGuard<ArrayVec<[String; 128]>>
[src]
Return logs