Main Page | Data Structures | File List | Data Fields | Globals

DCLog Struct Reference

#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


Detailed Description

DCLog class

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 );


Field Documentation

ULONG DCLog::count[1000]
 

holds the amount of alarms between alarm events

UCHAR DCLog::features
 

header, unique log filename, etc

char* DCLog::fn
 

filename

FILE* DCLog::fp
 

file pointer

char* DCLog::from
 

from header for alarms

UCHAR DCLog::lev
 

logging level

int DCLog::limit_size
 

if true, use size limits

char* DCLog::mailhost
 

hostname of the mail server

int DCLog::max_file_size
 

maximum size, in bytes of a logfile

time_t DCLog::oldtime[1000]
 

holds the time of the last alarm

struct tm* DCLog::prev_date
 

current file date

char DCLog::spool[256]
 

alarmd's spool directory

char* DCLog::to
 

email address to send alarms to

char DCLog::ts_fmt[DCLOG_TS_FMT_LEN]
 

strftime(3) format of timestamp


The documentation for this struct was generated from the following file:
Generated on Sun Feb 27 14:27:07 2005 for dclog by doxygen 1.3.5