aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2018-11-28 12:06:48 +0100
committerSiri Hansen <[email protected]>2018-11-28 12:06:48 +0100
commitd9eebcb24f235f0085ddf627527a64f2e1be4c34 (patch)
tree8a2b1a44070464673b3bad4fe36739dc3803200e
parent489b5eddf4b9b432e4e854bad603bb7d1d5678dc (diff)
parente46d5adbc263b6bec01633217cf4bf39f04a53f2 (diff)
downloadotp-d9eebcb24f235f0085ddf627527a64f2e1be4c34.tar.gz
otp-d9eebcb24f235f0085ddf627527a64f2e1be4c34.tar.bz2
otp-d9eebcb24f235f0085ddf627527a64f2e1be4c34.zip
Merge branch 'maint'
-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 8fc52ce0a9..c7e87e6668 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