From 2457143645b3ea0b5a3c3792d10ac6eb788f9b45 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Fri, 17 Jun 2022 07:51:59 +0200 Subject: [PATCH] fix(windows): log to console when running in console mode --- bin/emqx.cmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/emqx.cmd b/bin/emqx.cmd index 684c63824..ede51a56b 100644 --- a/bin/emqx.cmd +++ b/bin/emqx.cmd @@ -198,6 +198,8 @@ cd /d "%rel_root_dir%" :: Start a console :console +@set "EMQX_LOG__CONSOLE_HANDLER__ENABLE=true" +@set "EMQX_LOG__FILE_HANDLERS__DEFAULT__ENABLE=false" @call :create_mnesia_dir @call :generate_app_config @set args=%generated_config_args% -mnesia dir '%mnesia_dir%'