summaryrefslogtreecommitdiffstats
path: root/t/test_umberlog_preload.c
Commit message (Collapse)AuthorAgeFilesLines
* Test reorganisationGergely Nagy2012-08-111-177/+43
| | | | | | | | | | | | Moved some tests around between test_umberlog and test_umberlog_preload, so only those tests remain in test_umberlog_preload that do test something that the LD_PRELOAD lib variant provides. Also added a comment above each test to quickly clarify what they're meant to test. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
* LOG_UL_NODISCOVER => LOG_UL_NOIMPLICITGergely Nagy2012-08-111-2/+33
| | | | | | | | Based on a suggestion by Miloslav Trmač <mitr@redhat.com>, rename LOG_UL_NODISCOVER to LOG_UL_NOIMPLICIT, and clarify the documentation slightly. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
* Support disabling discovery for the LD_PRELOAD variantGergely Nagy2012-08-101-1/+6
| | | | | | | | When compiled with --disable-discovery, the LD_PRELOAD variant will have automatic field discovery disabled. This does not affect the linkable library, which always has them enabled by default. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
* Introduce ul_set_log_flags()Gergely Nagy2012-08-101-97/+0
| | | | | | | | | | | | | | Instead of piggy-backing on ul_openlog(), and accepting new flags at openlog()-time, use a separate function, ul_set_log_flags() to achieve the same. This way, anyone who wants to flip any of the new flags, will have to use ul_set_log_flags(), as ul_openlog() ignores them from now on. This is based on work done by Miloslav Trmač <mitr@redhat.com>, and is both an API and an ABI breakage. Signed-off-by: Gergely Nagy <algernon@balabit.hu>
* Split the library into a linkable and an LD_PRELOAD-able partGergely Nagy2012-08-101-0/+340
In order to satisfy the desire of using libumberlog, specifically ul_format(), without having to worry about syslog() & friends being overridden, split the library into two parts: A linkable library, which provides the new API, but does not override the legacy syslog() functions; and a new, LD_PRELOAD-able part, which does override the old ones. Signed-off-by: Gergely Nagy <algernon@balabit.hu>