aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-05-20 09:21:10 +0200
committerSiri Hansen <[email protected]>2018-05-23 11:11:35 +0200
commite484181ecc5c3e2928d10632138837eba3c3229e (patch)
tree93114d97f494bc628c4b041ff35d8246081cfe1f /lib/kernel/src
parent6342a95bdaa8681bf24f2dc8fba261d21b75c9e4 (diff)
downloadotp-e484181ecc5c3e2928d10632138837eba3c3229e.tar.gz
otp-e484181ecc5c3e2928d10632138837eba3c3229e.tar.bz2
otp-e484181ecc5c3e2928d10632138837eba3c3229e.zip
Update Logger documentation
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/logger.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/kernel/src/logger.erl b/lib/kernel/src/logger.erl
index 2a0e2e5f50..9c721d7fee 100644
--- a/lib/kernel/src/logger.erl
+++ b/lib/kernel/src/logger.erl
@@ -93,14 +93,16 @@
-type config() :: #{level => level(),
filter_default => log | stop,
filters => [{filter_id(),filter()}],
- formatter => {module(),map()},
- term() => term()}.
+ formatter => {module(),formatter_config()},
+ atom() => term()}.
-type timestamp() :: integer().
+-type formatter_config() :: #{atom() => term()}.
-type config_handler() :: {handler, handler_id(), module(), config()}.
-export_type([log/0,level/0,report/0,msg_fun/0,metadata/0,config/0,handler_id/0,
- filter_id/0,filter/0,filter_arg/0,filter_return/0, config_handler/0]).
+ filter_id/0,filter/0,filter_arg/0,filter_return/0,config_handler/0,
+ formatter_config/0]).
%%%-----------------------------------------------------------------
%%% API
@@ -390,7 +392,7 @@ get_handler_config(HandlerId) ->
-spec update_formatter_config(HandlerId,FormatterConfig) ->
ok | {error,term()} when
HandlerId :: config(),
- FormatterConfig :: map().
+ FormatterConfig :: formatter_config().
update_formatter_config(HandlerId,FormatterConfig) ->
logger_server:update_formatter_config(HandlerId,FormatterConfig).