83
83
const char *basename, LogFileFormat file_format,
84
84
const char *header, int rolling_enabled,
85
85
int rolling_interval_sec, int rolling_offset_hr, int rolling_size_mb)
86
: m_alt_filename(NULL),
92
init(format, log_dir, basename, file_format, header, rolling_enabled, rolling_interval_sec,
93
rolling_offset_hr, rolling_size_mb);
96
LogObject::LogObject(LogFormat format, const char *log_dir,
97
const char *basename, LogFileFormat file_format,
98
const char *header, int rolling_enabled,
99
int rolling_interval_sec, int rolling_offset_hr, int rolling_size_mb)
100
: m_alt_filename(NULL),
106
init(&format, log_dir, basename, file_format, header, rolling_enabled, rolling_interval_sec,
107
rolling_offset_hr, rolling_size_mb);
111
LogObject::init(LogFormat * format, const char *log_dir,
112
const char *basename, LogFileFormat file_format,
113
const char *header, int rolling_enabled,
114
int rolling_interval_sec, int rolling_offset_hr, int rolling_size_mb)
92
116
LogBuffer *tmp_lb_array[(DELAY_DELETE_SIZE + (DELAY_DELETE_SIZE / 4))];
737
761
/*-------------------------------------------------------------------------
738
762
TextLogObject::TextLogObject
739
763
-------------------------------------------------------------------------*/
741
TextLogObject::TextLogObject(const char *name, const char *log_dir, bool timestamps, const char *header, int rolling_enabled, int rolling_interval_sec, int rolling_offset_hr, int rolling_size_mb):
743
LogObject(NEW(new LogFormat(TEXT_LOG)), log_dir, name, ASCII_LOG, header,
744
rolling_enabled, rolling_interval_sec, rolling_offset_hr, rolling_size_mb), m_timestamps(timestamps)
764
TextLogObject::TextLogObject(const char *name, const char *log_dir, bool timestamps, const char *header, int rolling_enabled,
765
int rolling_interval_sec, int rolling_offset_hr, int rolling_size_mb)
766
: LogObject(LogFormat(TEXT_LOG), log_dir, name, ASCII_LOG, header,
767
rolling_enabled, rolling_interval_sec, rolling_offset_hr, rolling_size_mb), m_timestamps(timestamps)