#include <wvlog.h>
Inheritance diagram for WvLog:
Public Types | |
enum | LogLevel { Critical = 0, Error, Warning, Notice, Info, Debug, Debug1 = Debug, Debug2, Debug3, Debug4, Debug5, NUM_LOGLEVELS } |
enum | LogLevel { Critical = 0, Error, Warning, Notice, Info, Debug, Debug1 = Debug, Debug2, Debug3, Debug4, Debug5, NUM_LOGLEVELS } |
Public Methods | |
WvLog (const WvString &_app, LogLevel _loglevel=Info, const WvLog *par=NULL) | |
WvLog (const WvLog &l) | |
virtual | ~WvLog () |
virtual bool | isok () const |
WvLog & | lvl (LogLevel _loglevel) |
size_t | operator() (LogLevel _loglevel, const WvString &s) |
size_t | operator() (LogLevel _loglevel, const WvString &__wvs_format, const WvString &__wvs_a0, const WvString &__wvs_a1=__wvs_n, const WvString &__wvs_a2=__wvs_n, const WvString &__wvs_a3=__wvs_n, const WvString &__wvs_a4=__wvs_n, const WvString &__wvs_a5=__wvs_n, const WvString &__wvs_a6=__wvs_n, const WvString &__wvs_a7=__wvs_n, const WvString &__wvs_a8=__wvs_n, const WvString &__wvs_a9=__wvs_n, const WvString &__wvs_a10=__wvs_n, const WvString &__wvs_a11=__wvs_n, const WvString &__wvs_a12=__wvs_n, const WvString &__wvs_a13=__wvs_n, const WvString &__wvs_a14=__wvs_n, const WvString &__wvs_a15=__wvs_n, const WvString &__wvs_a16=__wvs_n, const WvString &__wvs_a17=__wvs_n, const WvString &__wvs_a18=__wvs_n, const WvString &__wvs_a19=__wvs_n) |
size_t | operator() (const WvString &s) |
size_t | operator() (const WvString &__wvs_format, const WvString &__wvs_a0, const WvString &__wvs_a1=__wvs_n, const WvString &__wvs_a2=__wvs_n, const WvString &__wvs_a3=__wvs_n, const WvString &__wvs_a4=__wvs_n, const WvString &__wvs_a5=__wvs_n, const WvString &__wvs_a6=__wvs_n, const WvString &__wvs_a7=__wvs_n, const WvString &__wvs_a8=__wvs_n, const WvString &__wvs_a9=__wvs_n, const WvString &__wvs_a10=__wvs_n, const WvString &__wvs_a11=__wvs_n, const WvString &__wvs_a12=__wvs_n, const WvString &__wvs_a13=__wvs_n, const WvString &__wvs_a14=__wvs_n, const WvString &__wvs_a15=__wvs_n, const WvString &__wvs_a16=__wvs_n, const WvString &__wvs_a17=__wvs_n, const WvString &__wvs_a18=__wvs_n, const WvString &__wvs_a19=__wvs_n) |
WvLog | split (LogLevel _loglevel) const |
virtual size_t | uwrite (const void *buf, size_t len) |
void | perror (const WvString &s) |
WvLog (const WvString &_app, LogLevel _loglevel=Info, const WvLog *par=NULL) | |
WvLog (const WvLog &l) | |
virtual | ~WvLog () |
virtual bool | isok () const |
WvLog & | lvl (LogLevel _loglevel) |
size_t | operator() (LogLevel _loglevel, const WvString &s) |
size_t | operator() (LogLevel _loglevel, WVSTRING_FORMAT_DECL) |
size_t | operator() (const WvString &s) |
size_t | operator() (WVSTRING_FORMAT_DECL) |
WvLog | split (LogLevel _loglevel) const |
virtual size_t | uwrite (const void *buf, size_t len) |
void | perror (const WvString &s) |
Public Attributes | |
WvString | app |
Protected Attributes | |
const WvLog * | parent |
LogLevel | loglevel |
const WvLog * | parent |
Static Protected Attributes | |
WvLogRcvBaseList | receivers |
int | num_receivers = 0 |
int | num_logs = 0 |
WvLogRcvBase * | default_receiver = NULL |
WvLogRcvBase * | default_receiver |
Friends | |
class | WvLogRcvBase |
Definition at line 46 of file include/wvlog.h.
|
Definition at line 50 of file streams/wvlog.h. |
|
Definition at line 50 of file include/wvlog.h. Referenced by WvLogRcv::level(), WvLogRcv::log(), lvl(), WvLogBuffer::Msg::Msg(), operator()(), split(), WvLogBuffer::WvLogBuffer(), WvLogConsole::WvLogConsole(), WvLogRcv::WvLogRcv(), and WvSyslog::WvSyslog(). |
|
Definition at line 35 of file wvlog.cc. References app, loglevel, num_logs, parent, and WvString::unique(). Referenced by split(). |
|
|
|
Definition at line 54 of file wvlog.cc. References default_receiver, num_logs, and num_receivers. |
|
|
|
|
|
|
|
fd==-1, but this stream is always ok Reimplemented from WvStream. |
|
fd==-1, but this stream is always ok Reimplemented from WvStream. |
|
change the loglevel. This returns the object again, so you can make convenient statements like log.lvl(WvLog::Warning).print(...) Definition at line 88 of file streams/wvlog.h. |
|
change the loglevel. This returns the object again, so you can make convenient statements like log.lvl(WvLog::Warning).print(...) Definition at line 88 of file include/wvlog.h. References loglevel, and LogLevel. Referenced by operator()(). |
|
Reimplemented from WvStream. Definition at line 119 of file streams/wvlog.h. References WvStream::operator()(). |
|
although these appear in WvStream, they need to be re-listed for some reason. Reimplemented from WvStream. Definition at line 117 of file streams/wvlog.h. References WvStream::operator()(). |
|
change the loglevel and then print a formatted message Definition at line 105 of file streams/wvlog.h. References loglevel, LogLevel, lvl(), and WvStream::print(). |
|
change the loglevel and then print a message. Definition at line 94 of file streams/wvlog.h. References loglevel, LogLevel, lvl(), and WvStream::write(). |
|
Reimplemented from WvStream. Definition at line 119 of file include/wvlog.h. References WvStream::operator()(). |
|
although these appear in WvStream, they need to be re-listed for some reason. Reimplemented from WvStream. Definition at line 117 of file include/wvlog.h. References WvStream::operator()(). |
|
change the loglevel and then print a formatted message Definition at line 105 of file include/wvlog.h. References loglevel, LogLevel, lvl(), and WvStream::print(). |
|
change the loglevel and then print a message. Definition at line 94 of file include/wvlog.h. References loglevel, LogLevel, lvl(), and WvStream::write(). |
|
a useful substitute for the normal C perror() function Definition at line 139 of file streams/wvlog.h. References WvStream::print(). |
|
a useful substitute for the normal C perror() function Definition at line 139 of file include/wvlog.h. References WvStream::print(). Referenced by WvInterface::addarp(), WvInterface::addroute(), WvInterface::delroute(), WvInterface::setflags(), WvInterface::setipaddr(), and WvInterface::setmtu(). |
|
split off a new WvLog object with the requested loglevel. This way you can have log at two or more levels without having to retype log.lvl(WvLog::blahblah) all the time. Definition at line 127 of file streams/wvlog.h. |
|
split off a new WvLog object with the requested loglevel. This way you can have log at two or more levels without having to retype log.lvl(WvLog::blahblah) all the time. Definition at line 127 of file include/wvlog.h. References LogLevel, and WvLog(). Referenced by WvInterfaceDict::update(). |
|
we override the unbuffered write function, so lines also include the application and log level. Reimplemented from WvStream. |
|
we override the unbuffered write function, so lines also include the application and log level. Reimplemented from WvStream. Definition at line 72 of file wvlog.cc. References default_receiver, WvLogRcvBase::log(), loglevel, num_receivers, parent, and receivers. |
|
Definition at line 48 of file include/wvlog.h. |
|
Definition at line 64 of file streams/wvlog.h. Referenced by WvLogBuffer::_begin_line(), WvLogRcvBase::appname(), and WvLog(). |
|
Definition at line 71 of file streams/wvlog.h. |
|
|
|
Definition at line 68 of file streams/wvlog.h. Referenced by lvl(), operator()(), uwrite(), and WvLog(). |
|
Definition at line 70 of file streams/wvlog.h. |
|
Definition at line 70 of file streams/wvlog.h. Referenced by uwrite(), WvLogRcvBase::WvLogRcvBase(), ~WvLog(), and WvLogRcvBase::~WvLogRcvBase(). |
|
Definition at line 67 of file streams/wvlog.h. |
|
Definition at line 67 of file include/wvlog.h. |
|
Definition at line 69 of file streams/wvlog.h. Referenced by uwrite(), WvLogRcvBase::WvLogRcvBase(), and WvLogRcvBase::~WvLogRcvBase(). |