summaryrefslogtreecommitdiffstats
path: root/src/log.h
Commit message (Collapse)AuthorAgeFilesLines
* Introduce macros log_bug() and log_error_r()Martin Nagy2009-08-041-0/+6
| | | | | | | The log_bug() is to be used when a condition that should never happen occurs. The log_error_r() will also log the reason of failure, which it will derive from variable 'result' that must be defined and of type isc_result_t.
* Tidy up log.c and log.h and introduce LOG_AS_ERRORMartin Nagy2009-08-041-16/+0
| | | | | | | The LOG_AS_ERROR conditional macro can be defined when compiling the sources to make log_debug() behave in the same way as log_error(). This is helpful for debugging, as specifying a debug level will introduce a lot of unwanted log messages.
* Add annotations to printf-like functionsMartin Nagy2009-08-041-2/+2
| | | | | | The ISC_FORMAT_PRINTF() macro will make sure that gcc checks if these functions are used correctly. Also fix bugs that were found along the way.
* Prepare the tree for conversion to autoconf.Martin Nagy2009-03-301-0/+48
All source files are now moved to src/ and the old Makefile is removed.