a firstworks project
Rudiments
About Documentation Download Licensing News

Using the logger class

The logger class and associated logdestination classes provide a framework for generating log messages from applications. An application can define a set of logdestinations and attach them to an instance of the logger class. Then, when the application calls one of the write() methods of the logger class, the log message is written to each of the logdestinations. For example, an application could simultaneously log to stderr and to a file. Currently stdout, stderr, file and syslog logdestinations are supported. If an application needs to send one set of log messages to one destination and another set to a different destinations, it can create two instances of the logger class and use one for each set of messages.

The following example illustrates use of the logger class.

Coming soon...

int main(int argc, const char **argv) {
	// FIXME: example...
}
Copyright 2017 - David Muse - Contact