Logging system buffers startup messages.

This allows adding log callbacks easier during startup, without 
missing the initial messages, which might be very important.
This commit is contained in:
James Turner
2017-01-30 07:43:35 +01:00
parent 866f85064a
commit ed3ba67925
2 changed files with 60 additions and 21 deletions
+6
View File
@@ -134,6 +134,12 @@ public:
void removeCallback(simgear::LogCallback* cb);
/**
* optionally record all entries and submit them to new log callbacks that
* are added. This allows simplified logging configuration, but still including
* early startup information in all logs.
*/
void setStartupLoggingEnabled(bool enabled);
private:
// constructor
logstream();