Logging

CARMA provides RAMs with a pointer to a logging function, a pointer to a log file, and a trace level (see Table 1) at initialization. The trace level should be used to filter out some messages that may not interest users. The logging function takes a 16-byte sender character buffer, a 256-byte message character buffer, and the log file pointer that is passed in at initialization. An example call in C follows:

if(traceLevel > 1)
      (*writeToLog)("MyRAM", "Gathering instances", logPtr);

The job spool will indicate the name of the log created.