diff options
author | Siri Hansen <[email protected]> | 2018-05-17 19:45:50 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-05-23 11:11:57 +0200 |
commit | 530d3cf99c562e3678eeb08e135ae90c4df4e052 (patch) | |
tree | 404a5203d7eaa66e1b9eab22c855a637baae5194 /lib/kernel/src/logger.erl | |
parent | 51c6464a011eacd78340b60e2641eaecc36933f6 (diff) | |
download | otp-530d3cf99c562e3678eeb08e135ae90c4df4e052.tar.gz otp-530d3cf99c562e3678eeb08e135ae90c4df4e052.tar.bz2 otp-530d3cf99c562e3678eeb08e135ae90c4df4e052.zip |
Rename module logger_simple to logger_simple_h
Also, change HandlerId from logger_simple to simple.
Diffstat (limited to 'lib/kernel/src/logger.erl')
-rw-r--r-- | lib/kernel/src/logger.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kernel/src/logger.erl b/lib/kernel/src/logger.erl index b32fca1fda..f35036aa04 100644 --- a/lib/kernel/src/logger.erl +++ b/lib/kernel/src/logger.erl @@ -561,10 +561,10 @@ internal_init_logger() -> end || Module <- Modules] || {module_level, Level, Modules} <- get_logger_env()], - case logger:set_handler_config(logger_simple,filters, + case logger:set_handler_config(simple,filters, get_default_handler_filters()) of ok -> ok; - {error,{not_found,logger_simple}} -> ok + {error,{not_found,simple}} -> ok end, init_kernel_handlers() @@ -580,7 +580,7 @@ init_kernel_handlers() -> try case get_logger_type() of {ok,silent} -> - ok = logger:remove_handler(logger_simple); + ok = logger:remove_handler(simple); {ok,false} -> ok; {ok,Type} -> @@ -621,9 +621,9 @@ add_handlers(HandlerConfig) -> %% If a default handler was added we try to remove the simple_logger %% If the simple logger exists it will replay its log events %% to the handler(s) added in the fold above. - _ = [case logger:remove_handler(logger_simple) of + _ = [case logger:remove_handler(simple) of ok -> ok; - {error,{not_found,logger_simple}} -> ok + {error,{not_found,simple}} -> ok end || DefaultAdded], ok catch throw:Reason -> |