CAMAC Front-End Documentation
: Software Description
: Logging Messages
Previous: Interfacing with PCI devices
Next: Simplifying logMsg() with macros
2.2. Logging Messages
VxWorks provides a logging task that can print messages to the
console device. The function that communicates with this task is
logMsg(). This function should be used for all diagnostic
messages rather than printf(), for several reasons:
- It queues the message to the logger task instead of
doing I/O. By queueing the request, the function will never
block, so it is safe to use in an interrupt routine.
- VxWorks supplies some "hooks" so the logging system can
be extended easier than
printf() can.
- 2.2.1.1. Example
- 2.2.2.1. Example
- 2.2.3.1. dbgMsg()
- 2.2.3.2. exitLog()
- 2.2.3.3. initLog()
- 2.2.3.4. logMsg()
- 2.2.3.5. reattachLog()
CAMAC Front-End Documentation
: Software Description
: Logging Messages
Previous: Interfacing with PCI devices
Next: Simplifying logMsg() with macros
Security, Privacy, Legal