summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-08-10 16:08:46 +0200
committerGergely Nagy <algernon@balabit.hu>2012-08-10 16:53:06 +0200
commita4658ad4520505fc5bf50d6dfb8dafe7bf7f0a19 (patch)
tree113483ff8d12394d9fde879a25c632973a30d5f6 /lib
parent8f7cfb8658fc3b2714a5b1c15dd350d5466ef947 (diff)
downloadlibumberlog-a4658ad4520505fc5bf50d6dfb8dafe7bf7f0a19.tar.gz
libumberlog-a4658ad4520505fc5bf50d6dfb8dafe7bf7f0a19.tar.xz
libumberlog-a4658ad4520505fc5bf50d6dfb8dafe7bf7f0a19.zip
Caching-related documentation update
Describe it better how caching works (and also correct a few mistakes that were left over when ul_set_log_flags() was introduced). Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'lib')
-rw-r--r--lib/umberlog.rst20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/umberlog.rst b/lib/umberlog.rst
index c3cdcb8..4d3a9e6 100644
--- a/lib/umberlog.rst
+++ b/lib/umberlog.rst
@@ -93,10 +93,7 @@ of these functions will also add a few automatically discovered fields
into the payload:
*pid*
- The process ID of the program, as returned by **getpid()** The value
- of this is - by default - determined at the time of calling
- **ul_openlog()**, but if caching is disabled, it will be rechecked
- every time.
+ The process ID of the program, as returned by **getpid()**.
*facility*, *priority*
The syslog facility and priority as a text string.
@@ -105,18 +102,21 @@ into the payload:
The identification set at the time of **ul_openlog()**.
*uid*, *gid*
- The user and group ID of the process, determined at **ul_openlog()**
- time by default, unless caching is disabled.
+ The user and group ID of the process.
*host*
- The name of the originating host, determined at **ul_openlog()**
- time by default, using **gethostname()**.
+ The name of the originating host.
*timestamp*
+
High-precision timestamp, in textual format. Included by default,
- but can be controlled by the **LOG_UL_NOTIME** option flag at
- **ul_openlog()** time.
+ but can be disabled by adding the **LOG_UL_NOTIME** flag to a
+ **ul_set_log_flags()** call.
+If caching is disabled (see **LOG_UL_NOCACHE** below), the *pid*,
+*uid*, *gid*, and *host* fields will be regenerated for every log
+message, otherwise they're cached for as long as possible.
+
EXTRA OPTION FLAGS
==================