Kaim::DefaultLog Class Reference

Kaim::DefaultLog Class Reference

#include <defaultlog.h>

Class Description

Default implementation of the Kaim::Log interface.

Inherits Kaim::BaseLog.

Public Member Functions

virtual void ReleaseMemorySystemResources ()
 
void SetLogToMode (LogToModeMask logToMode)
 
void SetupLogFile (const char *absoluteLogFileName, FileOpenerBase *fileOpener=0)
 
virtual void SetVisualDebugServer (VisualDebugServer *visualDebugServer)
 

Static Public Member Functions

static BaseLogGetGlobalBaseLog ()
 

Member Function Documentation

static BaseLog* Kaim::BaseLog::GetGlobalBaseLog ( )
inlinestaticinherited

BaseLog static functions must be used instead of Log::

virtual void Kaim::DefaultLog::ReleaseMemorySystemResources ( )
virtual

This is called in Kaim::BaseSystem::Destroy() before Navigation memory system is destroyed.

So, implementations of BaseLog relying on Kaim::BaseSystem resources (e.g. using KY_MALLOC or KY_NEW or Kaim::SysFile) should release these resources on this call. Otherwise, expect crashes.

Reimplemented from Kaim::BaseLog.

void Kaim::DefaultLog::SetLogToMode ( LogToModeMask  logToMode)
inline

Sets the output locations in which debug messages will be printed.

logToMode is a bitmask composed of elements from the LogToMode enumeration.

void Kaim::DefaultLog::SetupLogFile ( const char *  absoluteLogFileName,
FileOpenerBase fileOpener = 0 
)

.GwNavLog will be appended to absoluteLogFileName

+ Examples:
virtual void Kaim::DefaultLog::SetVisualDebugServer ( VisualDebugServer visualDebugServer)
inlinevirtual

Beware, all logs will be sent through this VisualDebugServer.

Hence if you use the VisualDebugServer of one world, you'll also receive the log of a secondary world

Implements Kaim::BaseLog.


The documentation for this class was generated from the following file: