Make WvStreams compile with gcc 4.4.
[wvstreams.git] / streams / wvcrashlog.cc
blob0f09749c0efeaa05ec6f98ecc18f269cdc29693a
1 /*
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * A "Log Receiver" that puts the messages in the wvcrash_ring_buffer
6 */
7 #include "wvcrashlog.h"
8 #include "wvcrash.h"
10 WvCrashLog::WvCrashLog(WvLog::LogLevel _max_level) :
11 WvLogRcv(_max_level)
16 void WvCrashLog::_mid_line(const char *str, size_t len)
18 wvcrash_ring_buffer_put(str, len);
22 void WvCrashLog::_make_prefix(time_t timenow)
24 prefix = WvString("%s<%s>: ", last_source, loglevels[last_level]);
25 prelen = prefix.len();