CAMAC Front-End Documentation : Software Description : Logging Messages : Function Reference
Previous: Debug Messages
Next: SLD Interface Library

2.2.3. Function Reference

These are the publically accessible functions and macros in the module. The prototypes are provided in kernel.h.

2.2.3.1. dbgMsg()

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.

2.2.3.2. exitLog()

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.

2.2.3.3. initLog()

void initLog();

This function attaches sockets to the log task.

2.2.3.4. logMsg()

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.

2.2.3.5. reattachLog()

void reattachLog();

This function refreshes the connections to remote machines. This can be used to reconnect a machine which temporarily disabled its server.


CAMAC Front-End Documentation : Software Description : Logging Messages : Function Reference
Previous: Debug Messages
Next: SLD Interface Library

Security, Privacy, Legal