diff options
author | Siri Hansen <[email protected]> | 2018-05-23 12:34:30 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-05-23 12:48:25 +0200 |
commit | 72f1ce276401e0b8de9c0c527cbc324da0186939 (patch) | |
tree | ee9213c25a48b2766b5659838ad2a1d1ab0f2cbf /lib/kernel/src/logger.erl | |
parent | 80606372f163ac26980010ee64464b2ace412100 (diff) | |
download | otp-72f1ce276401e0b8de9c0c527cbc324da0186939.tar.gz otp-72f1ce276401e0b8de9c0c527cbc324da0186939.tar.bz2 otp-72f1ce276401e0b8de9c0c527cbc324da0186939.zip |
Change type name logger:log() to logger:log_event()
Diffstat (limited to 'lib/kernel/src/logger.erl')
-rw-r--r-- | lib/kernel/src/logger.erl | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/kernel/src/logger.erl b/lib/kernel/src/logger.erl index f35036aa04..12f8dd77cf 100644 --- a/lib/kernel/src/logger.erl +++ b/lib/kernel/src/logger.erl @@ -64,11 +64,11 @@ %%%----------------------------------------------------------------- %%% Types --type log() :: #{level:=level(), - msg:={io:format(),[term()]} | - {report,report()} | - {string,unicode:chardata()}, - meta:=metadata()}. +-type log_event() :: #{level:=level(), + msg:={io:format(),[term()]} | + {report,report()} | + {string,unicode:chardata()}, + meta:=metadata()}. -type level() :: emergency | alert | critical | error | warning | notice | info | debug. -type report() :: map() | [{atom(),term()}]. @@ -87,9 +87,10 @@ line := non_neg_integer()}. -type handler_id() :: atom(). -type filter_id() :: atom(). --type filter() :: {fun((log(),filter_arg()) -> filter_return()),filter_arg()}. +-type filter() :: {fun((log_event(),filter_arg()) -> + filter_return()),filter_arg()}. -type filter_arg() :: term(). --type filter_return() :: stop | ignore | log(). +-type filter_return() :: stop | ignore | log_event(). -type config() :: #{id => handler_id(), level => level(), filter_default => log | stop, @@ -101,9 +102,9 @@ -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, - formatter_config/0]). +-export_type([log_event/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,formatter_config/0]). %%%----------------------------------------------------------------- %%% API |