WvStreams
wvcrashlog.h
1/* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4 *
5 * A "Log Receiver" that logs messages to a file
6 */
7
8#ifndef __WVCRASHLOG_H
9#define __WVCRASHLOG_H
10
11#include "wvlogrcv.h"
12
14class WvCrashLog : public WvLogRcv
15{
16public:
17 WvCrashLog(WvLog::LogLevel _max_level = WvLog::NUM_LOGLEVELS);
18
19protected:
20 virtual void _make_prefix(time_t now_sec);
21 virtual void _mid_line(const char *str, size_t len);
22};
23
24#endif
WvLogRcv that sticks log messages in the wvcrash_ring_buffer.
Definition: wvcrashlog.h:15
virtual void _mid_line(const char *str, size_t len)
add text to the current log line.
Definition: wvcrashlog.cc:16
virtual void _make_prefix(time_t now_sec)
Set the Prefix and Prefix Length (size_t prelen)
Definition: wvcrashlog.cc:22
WvLogRcv adds some intelligence to WvLogRcvBase, to keep track of line-prefix-printing and other form...
Definition: wvlogrcv.h:29