#include "libut/ut.h" void UT_LOG( UT_loglevel level, char *message, ... );
This function writes a printf-formatted message at the given log level to the log file. All the printf conversions of the underlying platform are available. The variable-length arguments corresponding to the printf format are passed at the end as usual.
level is one of these five log levels:
The message only appears in the log file if its level matches or is more severe than the current log level.
The ut_log_level configuration variable defines the server's log level.
The log control port command can bump the log level up and down
(e.g., log more
) among other things; see the control port online help.
UT_LOG is a macro (hence the uppercase name) which calls UT_log(). By being a macro, it is able to include its own line number and file name in the message.
Troy D. Hanson <thanson@users.sourceforge.net>