ILog

Interface for logging operations based on IMiniLog. Notes: Logging in CryEngine should be done using the following global functions: CryLog (eMessage) CryLogAlways (eAlways) CryError (eError) CryWarning (eWarning) CryComment (eComment) ILog gives you more control on logging operations.

C++
struct ILog : public IMiniLog {
  class CLogIndenter;
  class CLogAssetScopeName;
};
File

ILog.h

See Also

IMiniLog, CryLog, CryLogAlways, CryError, CryWarning

ILog::CLogAssetScopeName Class
Class Hierarchy
C++
class CLogAssetScopeName;
File

ILog.h

ILog::CLogAssetScopeName::~CLogAssetScopeName Destructor
C++
ILog::CLogAssetScopeName::CLogAssetScopeName Constructor
C++
CLogAssetScopeName(ILog * pLog, const char* sAssetType, const char * sAssetName);
ILog::CLogIndenter Class
Class Hierarchy
C++
class CLogIndenter;
File

ILog.h

ILog::CLogIndenter::~CLogIndenter Destructor
C++
ILog::CLogIndenter::CLogIndenter Constructor
C++
CLogIndenter(ILog * log);
ILog::CLogIndenter::DisplaySectionText Method
C++
void DisplaySectionText();
ILog::CLogIndenter::Enable Method
C++
void Enable(bool enable = true, const char * sectionTextFormat = NULL, ...);
ILog::CLogIndenter::GetNextIndenter Method
C++
CLogIndenter * GetNextIndenter();
ILog::CLogIndenter::SetNextIndenter Method
C++
void SetNextIndenter(CLogIndenter * indenter);
ILog::AddCallback Method
C++
virtual void AddCallback(ILogCallback * pCallback) = 0;
ILog::GetAssetScopeString Method
C++
virtual const char* GetAssetScopeString();
ILog::GetBackupFileName Method

Gets the filename where the current log backup was copied to on disk

C++
virtual const char* GetBackupFileName() = 0;
ILog::GetFileName Method

Gets the filename used to log to disk.

C++
virtual const char* GetFileName() = 0;
ILog::GetMemoryUsage Method
C++
virtual void GetMemoryUsage(ICrySizer * pSizer) const = 0;
Description

Notes: Collect memory statistics in CrySizer

ILog::GetModuleFilter Method
C++
virtual const char* GetModuleFilter() = 0;
ILog::GetVerbosityLevel Method
C++
virtual int GetVerbosityLevel() = 0;
ILog::Log Method

Logs the text both to file and console.

C++
virtual void Log(const char * szCommand, ...);
ILog::LogAlways Method
C++
virtual void LogAlways(const char * szCommand, ...);
ILog::LogError Method
C++
virtual void LogError(const char * szCommand, ...);
ILog::LogPlus Method

Logs the text both to the end of file and console.

C++
virtual void LogPlus(const char * command, ...);
ILog::LogToConsole Method

Logs to console only.

C++
virtual void LogToConsole(const char * command, ...);
ILog::LogToConsolePlus Method
C++
virtual void LogToConsolePlus(const char * command, ...);
ILog::LogToFile Method

Logs to the file specified in SetFileName.

C++
virtual void LogToFile(const char * command, ...);
See Also
ILog::LogToFilePlus Method
C++
virtual void LogToFilePlus(const char * command, ...);
ILog::LogWarning Method
C++
virtual void LogWarning(const char * szCommand, ...);
ILog::PopAssetScopeName Method
C++
virtual void PopAssetScopeName();
ILog::PushAssetScopeName Method
C++
virtual void PushAssetScopeName(const char * sAssetType, const char * sName);
Description

Asset scope strings help to figure out asset dependencies in case of asset loading errors. Should not be used directly, only by using define CRY_DEFINE_ASSET_SCOPE @see CRY_DEFINE_ASSET_SCOPE

ILog::RegisterConsoleVariables Method
C++
virtual void RegisterConsoleVariables();
ILog::Release Method
C++
virtual void Release() = 0;
ILog::RemoveCallback Method
C++
virtual void RemoveCallback(ILogCallback * pCallback) = 0;
ILog::SetFileName Method

Sets the file used to log to disk.

C++
virtual bool SetFileName(const char * command = NULL) = 0;
ILog::SetVerbosity Method
C++
virtual void SetVerbosity(int verbosity) = 0;
Description

Notes: Full logging (to console and file) can be enabled with verbosity 4. In the console 'log_Verbosity 4' command can be used.

ILog::UnregisterConsoleVariables Method
C++
virtual void UnregisterConsoleVariables();
ILog::Update Method
C++
virtual void Update() = 0;
Description

Notes: The function called every frame by system.

ILog::UpdateLoadingScreen Method
C++
virtual void UpdateLoadingScreen(const char * command, ...);