Next: CODA Callable Routines
Up: Language Elements
Previous: EVENT I/O
  Contents
  Index
Arbitrary messages may be sent to the console task, tagged with a severity. This routine should be used with caution inside event readout lists as they may over run the logger's
ability to keep up (thereby losing messages and degrading performance). In general messages should NOT be sent inside the user's trigger or done routines. The format of this call is similar to a c printf statement wherein the message string includes embedded format descriptors. For each format descriptor, the next unused argument is fetched and formatted according to the descriptor.
log [ inform | warn | alarm ] "quoted string",args,...
For example:
log warn "counter value is %d",counter
%d converts a decimal integer, %x produces hex output; other formats may be found in any c manual.
A user may make a function call to any routine defined in the readout list that uses the begin
structure:
call <name> # call the function <name> (no args)
Mohammad Ahmed
2003-07-23