summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/src/client_logger.rs
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-06-02 08:52:36 +0200
committernatrixaeria <janng@gmx.de>2019-06-02 08:52:36 +0200
commit5ded8b3c6813268dd44afa5a782c55f8a4f5ecae (patch)
tree36f7d1b6782a047cc153bb2628566226aed184bd /WebInterface/wasm/webhogg/src/client_logger.rs
parent0f7da3a189085cd16f90b210d0bb06798f715a57 (diff)
Add communicating between worker wasms
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
)