aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/kernel/doc/src/logger.xml5
-rw-r--r--lib/kernel/doc/src/logger_chapter.xml5
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/kernel/doc/src/logger.xml b/lib/kernel/doc/src/logger.xml
index 2bcf137299..e0b95fa4ad 100644
--- a/lib/kernel/doc/src/logger.xml
+++ b/lib/kernel/doc/src/logger.xml
@@ -290,7 +290,10 @@ logger:error("error happened because: ~p", [Reason]). % Without macro
<section>
<title>Macros</title>
- <p>The following macros are defined:</p>
+ <p>The following 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>
<list>
<item><c>?LOG_EMERGENCY(StringOrReport[,Metadata])</c></item>
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