feat: add 'format' as alias for log 'formatter'

This commit is contained in:
Zaiming (Stone) Shi 2023-09-22 14:11:56 +02:00
parent 9106eb92d2
commit aea1e80290
1 changed files with 1 additions and 0 deletions

View File

@ -1303,6 +1303,7 @@ log_handler_common_confs(Handler, Default) ->
sc( sc(
hoconsc:enum([text, json]), hoconsc:enum([text, json]),
#{ #{
aliases => [format],
default => maps:get(formatter, Default, text), default => maps:get(formatter, Default, text),
desc => ?DESC("common_handler_formatter"), desc => ?DESC("common_handler_formatter"),
importance => ?IMPORTANCE_MEDIUM importance => ?IMPORTANCE_MEDIUM