aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/error_logger.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-06-08 17:53:47 +0200
committerSiri Hansen <[email protected]>2018-06-11 15:01:42 +0200
commit4d3fe8ee8d5b079df6172232d4f6864286048028 (patch)
treec614ac05f176c42991ad367f933b2a19aa9b8224 /lib/kernel/src/error_logger.erl
parentcca41722c8dc7b83500f14588643ccd82bf3020f (diff)
downloadotp-4d3fe8ee8d5b079df6172232d4f6864286048028.tar.gz
otp-4d3fe8ee8d5b079df6172232d4f6864286048028.tar.bz2
otp-4d3fe8ee8d5b079df6172232d4f6864286048028.zip
[logger] Split config() in two: primary_config() and handler_config()
Diffstat (limited to 'lib/kernel/src/error_logger.erl')
-rw-r--r--lib/kernel/src/error_logger.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/src/error_logger.erl b/lib/kernel/src/error_logger.erl
index a0bf87796b..918a915729 100644
--- a/lib/kernel/src/error_logger.erl
+++ b/lib/kernel/src/error_logger.erl
@@ -101,8 +101,8 @@ stop() ->
%%%-----------------------------------------------------------------
%%% Callbacks for logger
--spec adding_handler(logger:config()) ->
- {ok,logger:config()} | {error,term()}.
+-spec adding_handler(logger:handler_config()) ->
+ {ok,logger:handler_config()} | {error,term()}.
adding_handler(#{id:=?MODULE}=Config) ->
case start() of
ok ->
@@ -111,12 +111,12 @@ adding_handler(#{id:=?MODULE}=Config) ->
Error
end.
--spec removing_handler(logger:config()) -> ok.
+-spec removing_handler(logger:handler_config()) -> ok.
removing_handler(#{id:=?MODULE}) ->
stop(),
ok.
--spec log(logger:log_event(),logger:config()) -> ok.
+-spec log(logger:log_event(),logger:handler_config()) -> ok.
log(#{level:=Level,msg:=Msg,meta:=Meta},_Config) ->
do_log(Level,Msg,Meta).