The LOG macros

The macros offered by the LOG-package expect printf-compatible format strings with any number of arguments.

#include <l4/log/l4log.h>

LOG(format...)
output the log-tag followed by the formatted message.
LOGl(format...)
output the log-tag, the source-code file, the line number, the function number and the formatted message.
LOGL(format...)
output the log-tag, the source-code file, the line number, the function name, the thread-id and the message.
LOGI(format...)
output the log-tag, some other information, and the formatted message.
LOG_Enter(format...)
output the function name followed by "() called" and the formatted message. This macro should be placed in the beginning of a function to indicate the function call.
LOG_Error(format...)
output "Error: " and the formatted message.

Conditional Logging

The macros LOG, LOGl, LOGL and LOG_Enter come in a second flavor, with a condition variable as the first argument. They are called LOGd, LOGdl, LOGdL and LOGd_Enter. Use a condition-expression as first argument to the LOGd...-macros. The logging will occur if the expression evaluates to true. If the condition-expression is constant and false, the whole Log-Statement will be null and void for the compiler.

Generated on Wed Apr 11 06:40:52 2012 for Logging and output facility for DROPS by  doxygen 1.5.6