aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/logger_chapter.xml
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-11-27 16:36:17 +0100
committerSiri Hansen <[email protected]>2018-11-27 16:36:17 +0100
commita99db2cf37ce08c07724645cc2d290c0fc574c81 (patch)
treea53f94b18088346c1a8fe42d3c6a697ba2ca5674 /lib/kernel/doc/src/logger_chapter.xml
parentdb9e22116b08fea681672cade04018b0e3d82ed9 (diff)
downloadotp-a99db2cf37ce08c07724645cc2d290c0fc574c81.tar.gz
otp-a99db2cf37ce08c07724645cc2d290c0fc574c81.tar.bz2
otp-a99db2cf37ce08c07724645cc2d290c0fc574c81.zip
[logger] Document that macros are defined in logger.hrl
Diffstat (limited to 'lib/kernel/doc/src/logger_chapter.xml')
-rw-r--r--lib/kernel/doc/src/logger_chapter.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/logger_chapter.xml b/lib/kernel/doc/src/logger_chapter.xml
index 1870d2ab79..458e61cef5 100644
--- a/lib/kernel/doc/src/logger_chapter.xml
+++ b/lib/kernel/doc/src/logger_chapter.xml
@@ -113,7 +113,10 @@
of functions on the form <c>logger:Level/1,2,3</c>, which are
all shortcuts
for <seealso marker="logger#log-2">
- <c>logger:log(Level,Arg1[,Arg2[,Arg3]])</c></seealso>.</p>
+ <c>logger:log(Level,Arg1[,Arg2[,Arg3]])</c></seealso>.</p>
+ <p>The macros are defined in <c>logger.hrl</c>, which is included
+ in a module with the directive</p>
+ <code>-include_lib("kernel/include/logger.hrl").</code>
<p>The difference between using the macros and the exported
functions is that macros add location (originator) information
to the metadata, and performs lazy evaluation by wrapping the