The logTest command reads a script of logging messages to be sent to the logdaemon and sends the messages at the specified times and as the specified process.
Synopsis
logTest [-s dir ] [-v] [-x] [file...]
Description
This command allows a repeatable sequence of messages to be sent through the logging and alerting system for test purposes.
Parameters for this command are described in the following table:
Parameter |
Description |
Comments |
-s dir |
Specifies the directory in which the systemLog.h file resides |
|
-v |
Increases verbosity when processing messages |
|
-x |
Supresses transmission to the logdaemon |
Automatically implies -v so that something happens |
The format of the messages to logTest is:
{interval} {dst} {priority} {process} {index} [arg arg...]
The parts of a message are described in the following table:
Message part |
Description |
Comments |
interval |
Number of seconds since the last message was logged |
|
dst |
Destination flag based on possible destinations specified by the Config and log.h files |
Should be a numeric value, such as 0x01 |
priority |
Priority of the message |
Values range from 0 to 4 |
process |
Name of the process to be listed as sender |
|
index |
Index of log message |
This can be:
|
arg arg ... |
Arguments associated with the message |
Number of arguments must match the number required by the specific log message or the resulting information in the logging data file is not expandable |
Note:
To use symbolic values, logTest must have access to the systemLog.h file.