-
Notifications
You must be signed in to change notification settings - Fork 1
Logger
danielmarg edited this page Nov 18, 2012
·
7 revisions
Simple and thread safe logging class.
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.
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.