quicklog_flush/stdout_flusher.rs
1use crate::Flush;
2
3/// Flushes into stdout
4pub struct StdoutFlusher;
5
6impl StdoutFlusher {
7 pub fn new() -> StdoutFlusher {
8 StdoutFlusher {}
9 }
10}
11
12impl Default for StdoutFlusher {
13 fn default() -> Self {
14 Self::new()
15 }
16}
17
18impl Flush for StdoutFlusher {
19 fn flush_one(&mut self, display: String) {
20 print!("{}", display);
21 }
22}