16class WvLogFileBase :
public WvLogRcv,
public WvFile
19 WvLogFileBase(WvStringParm _filename,
20 WvLog::LogLevel _max_level = WvLog::NUM_LOGLEVELS);
26 WvLogFileBase(WvLog::LogLevel _max_level);
28 virtual void _mid_line(
const char *str,
size_t len);
37class WvLogFile :
public WvLogFileBase
40 WvLogFile(WvStringParm _filename,
41 WvLog::LogLevel _max_level = WvLog::NUM_LOGLEVELS,
42 int _keep_for = 7,
bool _force_new_line =
false,
43 bool _allow_append =
true);
48 virtual void _make_prefix(time_t now_sec);
49 int keep_for, last_day;
54 const char *wstype()
const {
return "WvLogFileBase"; }
WvFile()
Create an empty WvFile that you'll open later with open().
virtual void _make_prefix(time_t now_sec)
Set the Prefix and Prefix Length (size_t prelen).
virtual void _mid_line(const char *str, size_t len)
add text to the current log line.
virtual void _end_line()
End this (Guaranteed NonEmpty) log line.
WvString is an implementation of a simple and efficient printable-string class.