----------------------------------------------------------------------------- Set flag to actually write to log or skip it (legacy version) If logging is enabled, the default log detail settings will be used Write to file/screen LogLevel_Detail Save in queue for errors LogLevel_Debug Trigger for dumping queue LogLevel_Warning Console output? Yes Append to an existing log
| 153 | // Append to an existing log? No (overwrite) |
| 154 | //----------------------------------------------------------------------------- |
| 155 | void Log::SetLoggingState |
| 156 | ( |
| 157 | bool _dologging |
| 158 | ) |
| 159 | { |
| 160 | bool prevLogging = s_dologging; |
| 161 | s_dologging = _dologging; |
| 162 | |
| 163 | if (!prevLogging && s_dologging) Log::Write(LogLevel_Always, "Logging started\n\n"); |
| 164 | } |
| 165 | |
| 166 | //----------------------------------------------------------------------------- |
| 167 | // <Log::SetLoggingState> |