aboutsummaryrefslogtreecommitdiff
path: root/docs/man/nng_log_set_logger.adoc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-04-14 10:21:09 -0700
committerGarrett D'Amore <garrett@damore.org>2024-04-14 18:52:56 -0700
commitd11b162ac67268e77c39d633972bc3e05d3f7995 (patch)
treedb1116edd24fd142ac9c7179f931a1933e29e800 /docs/man/nng_log_set_logger.adoc
parent9d2ee20ae222ba89ef2345347474659308a8fb92 (diff)
downloadnng-d11b162ac67268e77c39d633972bc3e05d3f7995.tar.gz
nng-d11b162ac67268e77c39d633972bc3e05d3f7995.tar.bz2
nng-d11b162ac67268e77c39d633972bc3e05d3f7995.zip
Add clarification about logged content.
Diffstat (limited to 'docs/man/nng_log_set_logger.adoc')
-rw-r--r--docs/man/nng_log_set_logger.adoc1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/man/nng_log_set_logger.adoc b/docs/man/nng_log_set_logger.adoc
index 4f3cafc8..eedbca49 100644
--- a/docs/man/nng_log_set_logger.adoc
+++ b/docs/man/nng_log_set_logger.adoc
@@ -36,6 +36,7 @@ Only a single logger may be registered at a time.
If needed, the logger should make copies of either _msgid_ or _msg_, as those may not be valid once the logger function returns.
The `nng_null_logger` function is an implementation of `nng_logger` that simply discards the content.
+This is the default logger, so logging is disabled by default.
The `nng_stderr_logger` function is an implementation that logs messages to the standard error stream.
It will attempt to colorize messages by the severity, if the standard error is a terminal device.