summaryrefslogtreecommitdiffstats
path: root/test/unit/log.c
Commit message (Collapse)AuthorAgeFilesLines
* Logging: capitalize log macro.David Goldblatt2017-10-031-1/+1
| | | | Dodge a name-conflict with the math.h logarithm function. D'oh.
* Logging: log using the log var names directly.David Goldblatt2017-07-241-2/+1
| | | | | | | | | | | Currently we have to log by writing something like: static log_var_t log_a_b_c = LOG_VAR_INIT("a.b.c"); log (log_a_b_c, "msg"); This is sort of annoying. Let's just write: log("a.b.c", "msg");
* Logging: allow logging with empty varargs.David Goldblatt2017-07-221-2/+14
| | | | | | Currently, the log macro requires at least one argument after the format string, because of the way the preprocessor handles varargs macros. We can hide some of that irritation by pushing the extra arguments into a varargs function.
* Add a logging facility.David T. Goldblatt2017-07-211-0/+182
This sets up a hierarchical logging facility, so that we can add logging statements liberally, and turn them on in a fine-grained manner.