Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 2 33
The EMS Application Programming Interface (API)
Logging and Tracing
logging is applied at the EMS application level, it subsequently is
applied to all EMS elements, clients, registrars, and monitors.
Client applications log to /etc/opt/resmon/log/client.log, resource
monitors log to /etc/opt/resmon/log/api.log, and the Registrar logs
to /etc/opt/resmon/log/registrar.log.
When a log file reaches 500K bytes, EMS creates a backup copy of it and
starts a new file. Only one backup file is kept for each type of EMS
process (client, resource monitor, or Registrar). The backup file name is
the name of the file with a .old extension, for example,
client.log.old.
Target applications cannot use the EMS logging functions when they do
not call rm_monitor_start (). Target applications that also serve as
monitors can use the EMS logging functions because they will call the
rm_monitor_start () as part of the monitoring sequence. Target
applications can alternatively use user defined logging. Using the
syslog(3C) facility is not recommended due to the excessive system
messaging EMS might generate.