aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/include
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-06-18 17:53:00 +0200
committerSiri Hansen <[email protected]>2018-07-13 12:20:25 +0200
commitda166b76de977171243dd2ea7f86b98f451fabc5 (patch)
treee1a3dd7acf36f9e0e1f6c1b9bf44c4bc4e60d412 /lib/kernel/include
parent8fed5e01980996cd34be6e27370eed74b5c0ed5d (diff)
downloadotp-da166b76de977171243dd2ea7f86b98f451fabc5.tar.gz
otp-da166b76de977171243dd2ea7f86b98f451fabc5.tar.bz2
otp-da166b76de977171243dd2ea7f86b98f451fabc5.zip
[logger] Add ?LOG macro which takes Level as argument
Diffstat (limited to 'lib/kernel/include')
-rw-r--r--lib/kernel/include/logger.hrl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kernel/include/logger.hrl b/lib/kernel/include/logger.hrl
index 2143ccd297..b09977e0f2 100644
--- a/lib/kernel/include/logger.hrl
+++ b/lib/kernel/include/logger.hrl
@@ -32,6 +32,10 @@
-define(LOG_DEBUG(A,B),?DO_LOG(debug,[A,B])).
-define(LOG_DEBUG(A,B,C),?DO_LOG(debug,[A,B,C])).
+-define(LOG(L,A),?DO_LOG(L,[A])).
+-define(LOG(L,A,B),?DO_LOG(L,[A,B])).
+-define(LOG(L,A,B,C),?DO_LOG(L,[A,B,C])).
+
-define(LOCATION,#{mfa=>{?MODULE,?FUNCTION_NAME,?FUNCTION_ARITY},
line=>?LINE,
file=>?FILE}).