Table of Contents

Class ZendeskLogger

The ZendeskLogger is a class responsible for handling logging in the Zendesk Sdk.

public sealed class ZendeskLogger
Inheritance
ZendeskLogger
Inherited Members

Methods

ClearLogBuffer()

Clears the in-memory log buffer.

public static void ClearLogBuffer()

DumpLogs()

Returns all buffered SDK log entries as a JSON string. On lower-end mobile devices, serialising the full buffer may take a few milliseconds. Avoid calling this during gameplay frames.

public static string DumpLogs()

Returns

string

A JSON array of log entries, or an empty array if no logs are buffered.

IsLogEnabled()

Checks whether logging is enabled for the Logger class.

public static bool IsLogEnabled()

Returns

bool

Returns true if logging is enabled, otherwise false.

SetEnabled(bool)

Toggle whether logs are enabled/disabled.

public static void SetEnabled(bool logEnabled)

Parameters

logEnabled bool

Toggle to enable/disable logs.

SetLogHandler(ILogger)

Sets the log handler for the ZendeskLogger class.

public static void SetLogHandler(ILogger logger)

Parameters

logger ILogger

An object that implements the Zendesk.MessagingCore.Logging.ILogger interface.