These are the publically accessible functions and macros in
the module. The prototypes are provided in kernel.h
.
dbgMsg0(fmt);
dbgMsg1(fmt, arg1);
dbgMsg2(fmt, arg1, arg2);
dbgMsg3(fmt, arg1, arg2, arg3);
dbgMsg4(fmt, arg1, arg2, arg3, arg4);
dbgMsg5(fmt, arg1, arg2, arg3, arg4, arg5);
These macros emit verbose messages to the log task if NDEBUG isn't defined during compilation.
void exitLog();
This function shuts down all the sockets used to remotely communicate the log messages. It also detaches the sockets from the logging task.
void initLog();
This function attaches sockets to the log task.
logMsg0(fmt);
logMsg1(fmt, arg1);
logMsg2(fmt, arg1, arg2);
logMsg3(fmt, arg1, arg2, arg3);
logMsg4(fmt, arg1, arg2, arg3, arg4);
logMsg5(fmt, arg1, arg2, arg3, arg4, arg5);
logMsg6(fmt, arg1, arg2, arg3, arg4, arg5, arg6);
These macros emit a message to the log task.
void reattachLog();
This function refreshes the connections to remote machines. This can be used to reconnect a machine which temporarily disabled its server.