Chapter 12. Dealing with Log Messages

Table of Contents
WvLog - printing log messages
WvLogRcv - receiving and disposing of log messages
WvLogBuffer - saving log messages to a buffer
WvLogFile - sending log messages to a file
WvSyslog - sending log messages to syslog
An example of WvPipe and WvLog together

WvLog - printing log messages

A generic data-logger class with support for multiple receivers. If no WvLogRcv objects have been created (see wvlogrcv.h) the default is to log to stderr.

WvLog supports partial- and multiple-line log messages. For example,

log.print("test ");
log.print("string\nfoo");

will print:

appname(lvl): test string
appname(lvl): foo

See also, WvLogRcv.