Optimize log configuration

This commit is contained in:
turtled 2019-05-05 14:01:49 +08:00 committed by Shawn
parent 3b0f232961
commit 6dd09ef681
1 changed files with 2 additions and 6 deletions

View File

@ -400,7 +400,7 @@ end}.
{datatype, {enum, [debug, info, notice, warning, error, critical, alert, emergency, all]}}
]}.
{mapping, "log.primary_level", "emqx.primary_log_level", [
{mapping, "log.primary_level", "kernel.primary_log_level", [
{default, error},
{datatype, {enum, [debug, info, notice, warning, error, critical, alert, emergency, all]}}
]}.
@ -420,7 +420,7 @@ end}.
{datatype, file}
]}.
{mapping, "log.chars_limit", "log.chars_limit", [
{mapping, "log.chars_limit", "kernel.logger", [
{default, 1024},
{datatype, integer}
]}.
@ -462,10 +462,6 @@ end}.
hidden
]}.
{translation, "emqx.primary_log_level", fun(Conf) ->
cuttlefish:conf_get("log.level", Conf)
end}.
{translation, "kernel.logger", fun(Conf) ->
LogTo = cuttlefish:conf_get("log.to", Conf),
LogLevel = cuttlefish:conf_get("log.level", Conf),