gwnavruntime/basesystem/defaultlog.h Source File
Go to the documentation of this file.
10 #ifndef Navigation_DefaultLog_H
11 #define Navigation_DefaultLog_H
23 class VisualDebugServer;
29 typedef UInt32 LogToModeMask;
30 enum LogToMode { LogToNothing = 0, LogToStdout = 1, LogToIde = 2, LogToFile = 4, LogToVisualDebug = 8, LogToAll = 15 };
33 static bool IsInitialized;
34 static DefaultLog& Instance() {
static DefaultLog s_instance; IsInitialized =
true;
return s_instance; }
35 static void Destroy();
37 virtual void LogMessageVarg(LogMessageId messageId,
const char* fmt, va_list argList);
42 void SetLogToMode(LogToModeMask logToMode) { m_logToMode = logToMode; }
52 virtual void LogBuffer(LogMessageId messageId,
const char* buffer);
56 : m_logToMode(LogToNothing)
61 SFstrcpy(m_logFilename,
Kaim::ArraySize(m_logFilename),
"NavigationLog.GwNavLog");
71 FileOpenerBase* m_fileOpener;
72 char m_logFilename[260];
74 VisualDebugServer* m_visualDebugServer;
81 #endif // Navigation_DefaultLog_H
void SetLogToMode(LogToModeMask logToMode)
Sets the output locations in which debug messages will be printed.
Definition: defaultlog.h:44
Base interface for a class that opens a file on disk.
Definition: fileopener.h:35
Default implementation of the Kaim::Log interface.
Definition: defaultlog.h:26
void SetupLogFile(const char *absoluteLogFileName, FileOpenerBase *fileOpener=0)
.GwNavLog will be appended to absoluteLogFileName
#define KY_NULL
Null value.
Definition: types.h:247
virtual void SetVisualDebugServer(VisualDebugServer *visualDebugServer)
Beware, all logs will be sent through this VisualDebugServer.
Definition: defaultlog.h:52
virtual void ReleaseMemorySystemResources()
This is called in Kaim::BaseSystem::Destroy() before Navigation memory system is destroyed.
Definition: gamekitcrowddispersion.h:20
The VisualDebugServer manages the sending of data to clients.
Definition: visualdebugserver.h:254
KyUInt32 ArraySize(T(&)[N])
Returns the size of a fixed-size array.
Definition: types.h:361
BaseLog must used instead of Kaim::Log due to parti pris for Navigation's VisualDebug.
Definition: baselog.h:19