CMLOG Notes
CMLOG is a distributed message logging system that allows applications to log
messages to centralized database files, and has a Motif browser to view
either current logging data in real time or historical data in the
database.
Usage
- The CODA setup script sets the environment variable CMLOG_ROOT to
/usr/local/CMLOG. This directory contains the file "cmlog.config" which does
the server configuration file and a "cmlogrc" file which configures the
motif browser "cmlog". The default browser settings can be changed by setting
the variable CMLOG_CONFIG to point to an alternate file.
- Start the server by "cmlogServer" (uses settings in file "cmlog.config"
by default) or "cmlogServer " (to use an alternate configuration
file).
- "cmlog_activate" and "cmlogClientD" should be in your path for
applications under unix to log messages to the server. This is done
automatically by the CODA setup script. Here is some sample C++ code (clientTest.cc) and C code
(client_test.c) that logs messages to the server. The code can be compiled
under solaris or vxworks as shown here .
- To browse through the messages, start "cmlog". Use File->Connect to
connect to the server. To display messages in real time, choose Options->Update
with an optional selection string to filter messages. To query old messages,
use Options->Query.
- Here is a snapshot of the cmlog browser:
Ashutosh Sanzgiri