#include <log.h>
Data Fields | |
FILE * | stream |
Initialized to NULL for ISC_LOG_TOFILE. | |
const char * | name |
NULL for ISC_LOG_TOFILEDESC. | |
int | versions |
isc_offset_t | maximum_size |
stdio's ftell is standardized to return a long, which may well not be big enough for the largest file supportable by the operating system (though it is _probably_ big enough for the largest log anyone would want). st_size returned by fstat should be typedef'd to a size large enough for the largest possible file on a system. | |
isc_boolean_t | maximum_reached |
Private. |
When defining an ISC_LOG_TOFILE channel the name, versions and maximum_size should be set before calling isc_log_createchannel(). To define an ISC_LOG_TOFILEDESC channel set only the stream before the call.
Setting maximum_size to zero implies no maximum.
Definition at line 121 of file log.h.
FILE* isc_logfile::stream |
Initialized to NULL for ISC_LOG_TOFILE.
Definition at line 122 of file log.h.
Referenced by channel_fromconf(), dns_test_begin(), isc_log_createchannel(), isc_logconfig_create(), isc_test_begin(), main(), ns_log_setdefaultchannels(), ns_log_setsafechannels(), and setup_logging().
const char* isc_logfile::name |
NULL for ISC_LOG_TOFILEDESC.
Definition at line 123 of file log.h.
Referenced by channel_fromconf(), dns_test_begin(), isc_log_createchannel(), isc_logconfig_create(), isc_test_begin(), main(), ns_log_setdefaultchannels(), ns_log_setsafechannels(), and setup_logging().
Definition at line 124 of file log.h.
Referenced by channel_fromconf(), dns_test_begin(), isc_log_createchannel(), isc_logconfig_create(), isc_test_begin(), main(), ns_log_setdefaultchannels(), ns_log_setsafechannels(), and setup_logging().
stdio's ftell is standardized to return a long, which may well not be big enough for the largest file supportable by the operating system (though it is _probably_ big enough for the largest log anyone would want). st_size returned by fstat should be typedef'd to a size large enough for the largest possible file on a system.
Definition at line 132 of file log.h.
Referenced by channel_fromconf(), dns_test_begin(), isc_log_createchannel(), isc_logconfig_create(), isc_test_begin(), main(), ns_log_setdefaultchannels(), ns_log_setsafechannels(), and setup_logging().