Skip to content
danielmarg edited this page Nov 18, 2012 · 7 revisions

Simple and thread safe logging class.

1. Instruction

First of all you have to call the configure(string) function once and set the file name. After that include Config.h. Then fetch the instance via the getInstance() function. Call the log(LogSeverity, string) function and your message will be logged.

2. Known issues

In debug mode the stream cannot be flushed, thus the stream only writes to the file when it is closed, i.e. the program is closed.

Clone this wiki locally