Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
blueslip: Declare log properties directly on the Logger class.
Priyank Patel97c8987e0244
diff --git a/static/js/blueslip.js b/static/js/blueslip.jsindex ad51d5b2387..e2dc3808505 100644--- a/static/js/blueslip.js+++ b/static/js/blueslip.js@@ -56,6 +56,12 @@ function make_logger_func(name) {}class Logger {+ debug = make_logger_func("debug");+ log = make_logger_func("log");+ info = make_logger_func("info");+ warn = make_logger_func("warn");+ error = make_logger_func("error");+_memory_log = [];get_log() {@@ -63,10 +69,6 @@ class Logger {}}-for (const name of ["debug", "log", "info", "warn", "error"]) {- Logger.prototype[name] = make_logger_func(name);-}-const logger = new Logger();export function get_log() {