#include <dclog.h>
Data Fields | |
FILE * | fp |
file pointer | |
char * | fn |
filename | |
char * | mailhost |
hostname of the mail server | |
char * | to |
email address to send alarms to | |
char * | from |
from header for alarms | |
char | spool [256] |
alarmd's spool directory | |
UCHAR | lev |
logging level | |
UCHAR | features |
header, unique log filename, etc | |
char | ts_fmt [DCLOG_TS_FMT_LEN] |
strftime(3) format of timestamp | |
tm * | prev_date |
current file date | |
time_t | oldtime [1000] |
holds the time of the last alarm | |
ULONG | count [1000] |
holds the amount of alarms between alarm events | |
int | limit_size |
if true, use size limits | |
int | max_file_size |
maximum size, in bytes of a logfile |
Contains all of the state that the logger needs. The DCLog object should be created with NewDCLog(): DCLog *dclog = NewDCLog(); and then passed to all logger functions as the first argument: DCLogWrite( dclog, 5, "The foo has been barred %d times\n", num_foo );
|
holds the amount of alarms between alarm events
|
|
header, unique log filename, etc
|
|
filename
|
|
file pointer
|
|
from header for alarms
|
|
logging level
|
|
if true, use size limits
|
|
hostname of the mail server
|
|
maximum size, in bytes of a logfile
|
|
holds the time of the last alarm
|
|
current file date
|
|
alarmd's spool directory
|
|
email address to send alarms to
|
|
strftime(3) format of timestamp
|