X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/dab22732a0d20c23d783fdf2ff3177732bc18757..14ad73b94d56fb8558eabfef431c34e12de00478:/lib/log-impl.h diff --git a/lib/log-impl.h b/lib/log-impl.h index 51577df..b0147a6 100644 --- a/lib/log-impl.h +++ b/lib/log-impl.h @@ -17,7 +17,13 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ +/** @file lib/log-impl.h @brief Errors and logging */ +/** @brief Log an error and quit + * + * If @c ${DISORDER_FATAL_ABORT} is defined (as anything) then the process + * is aborted, so you can get a backtrace. + */ void disorder_fatal(int errno_value, const char *msg, ...) { va_list ap; @@ -28,6 +34,7 @@ void disorder_fatal(int errno_value, const char *msg, ...) { exitfn(EXIT_FAILURE); } +/** @brief Log an error */ void disorder_error(int errno_value, const char *msg, ...) { va_list ap; @@ -36,6 +43,7 @@ void disorder_error(int errno_value, const char *msg, ...) { va_end(ap); } +/** @brief Log an informational message */ void disorder_info(const char *msg, ...) { va_list ap;