Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::IApiCallLogger Class Referenceabstract

Api Call Logger interface. More...

Public Member Functions

virtual void onLog (int logLevel, char *logText, unsigned logTextSize)=0
 Low level engine log hook.
virtual int onGetLogLevel () const =0
 Gets the stating logging level from which the Sdk will print logs, e.g.
virtual bool onUseSystemLogging () const
 Check if allowed to use system logging.
virtual bool onGetLogBuffer (DataBuffer &buff)
 Get log data as buffer ( SDK automatic crash dump reporting ).
virtual bool onGetLogPath (String &path) const
 Get log data as file path ( SDK automatic crash dump reporting ).

Detailed Description

Api Call Logger interface.

Member Function Documentation

◆ onGetLogBuffer()

virtual bool gem::IApiCallLogger::onGetLogBuffer ( DataBuffer & buff)
inlinevirtual

Get log data as buffer ( SDK automatic crash dump reporting ).

Parameters
[out]buffThe buffer to fill with log data
Returns
True if the buffer was filled, false otherwise

◆ onGetLogLevel()

virtual int gem::IApiCallLogger::onGetLogLevel ( ) const
pure virtual

Gets the stating logging level from which the Sdk will print logs, e.g.

if this function returns LogInfo, only LogInfo, LogWarn, LogError and LogFatal will be printed

Returns
The stating logging level

◆ onGetLogPath()

virtual bool gem::IApiCallLogger::onGetLogPath ( String & path) const
inlinevirtual

Get log data as file path ( SDK automatic crash dump reporting ).

Parameters
[out]pathThe path to fill with log data
Returns
True if the path was filled, false otherwise

◆ onLog()

virtual void gem::IApiCallLogger::onLog ( int logLevel,
char * logText,
unsigned logTextSize )
pure virtual

Low level engine log hook.

Parameters
logLevelThe log level
logTextThe log text
logTextSizeThe log text size

◆ onUseSystemLogging()

virtual bool gem::IApiCallLogger::onUseSystemLogging ( ) const
inlinevirtual

Check if allowed to use system logging.

Returns
True if allowed, false otherwise