summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/src/client_logger.rs
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/wasm/webhogg/src/client_logger.rs')
-rw-r--r--WebInterface/wasm/webhogg/src/client_logger.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebInterface/wasm/webhogg/src/client_logger.rs b/WebInterface/wasm/webhogg/src/client_logger.rs
index f71918f..f537631 100644
--- a/WebInterface/wasm/webhogg/src/client_logger.rs
+++ b/WebInterface/wasm/webhogg/src/client_logger.rs
@@ -32,8 +32,9 @@ fn log(rec: &log::Record) {
pub fn init_logger() {
fern::Dispatch::new().format(|out, message, record|{
out.finish(format_args!(
- "%c{}%c {} > {}",
+ "%c{}%c |{}| {} > {}",
record.level(),
+ String::from(js_sys::Date::new_0().to_iso_string()),
record.target(),
message
)