summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGergely Nagy <algernon@balabit.hu>2012-08-10 16:13:18 +0200
committerGergely Nagy <algernon@balabit.hu>2012-08-10 16:53:06 +0200
commit2c5439de564f25e4a839586f2f764d2ad8c99968 (patch)
tree12bc7bc5b2b235f43b93e27849e5ed135eb54895 /lib
parenta4658ad4520505fc5bf50d6dfb8dafe7bf7f0a19 (diff)
downloadlibumberlog-2c5439de564f25e4a839586f2f764d2ad8c99968.tar.gz
libumberlog-2c5439de564f25e4a839586f2f764d2ad8c99968.tar.xz
libumberlog-2c5439de564f25e4a839586f2f764d2ad8c99968.zip
Introduce LOG_UL_ALL
This new flag for ul_set_log_flags() makes it easier to understand what the default is (0 typically does not mean "enable all"). Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'lib')
-rw-r--r--lib/umberlog.h1
-rw-r--r--lib/umberlog.rst4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/umberlog.h b/lib/umberlog.h
index eca6bcd..85f7b6e 100644
--- a/lib/umberlog.h
+++ b/lib/umberlog.h
@@ -31,6 +31,7 @@
#include <syslog.h>
#include <stdarg.h>
+#define LOG_UL_ALL 0x0000
#define LOG_UL_NODISCOVER 0x0040
#define LOG_UL_NOCACHE 0x0080
#define LOG_UL_NOCACHE_UID 0x0100
diff --git a/lib/umberlog.rst b/lib/umberlog.rst
index 4d3a9e6..5ae5c7c 100644
--- a/lib/umberlog.rst
+++ b/lib/umberlog.rst
@@ -123,6 +123,10 @@ EXTRA OPTION FLAGS
The *flag* argument to **ul_set_log_flags()** is an OR of any of these
flags:
+LOG_UL_ALL
+ Enable all automatically discovered fields. This is the default
+ setting.
+
LOG_UL_NODISCOVER
Disable all automatic discovery, and only include the *message*,
and any specified *key-value* pairs in the generated message.