mirror of https://github.com/dswd/vpncloud.git
Added timestamp to outputs
This commit is contained in:
parent
5e7d3b5e08
commit
00296a660d
|
@ -91,7 +91,11 @@ impl log::Log for SimpleLogger {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn log(&self, record: &log::LogRecord) {
|
fn log(&self, record: &log::LogRecord) {
|
||||||
if self.enabled(record.metadata()) {
|
if self.enabled(record.metadata()) {
|
||||||
println!("{} - {}", record.level(), record.args());
|
println!("{} - {} - {}",
|
||||||
|
time::strftime("%F %T", &time::now()).expect("Failed to format timestamp"),
|
||||||
|
record.level(),
|
||||||
|
record.args()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue