Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ Initialize()

static void Initialize ( GamebaseRequest::Logger::Configuration configuration)
static

This function initializes the TOAST Logger SDK.

The behavior of TOAST Logger SDK functions are undetermined if this function is not called. The appKey of the Log & Crash project is required to initialize Logger. This function should be called when the application is run.

Since
Added 2.6.0.
Parameters
configurationThe configuration of Logger.

Example Usage :

public static void InitializeSample()
{
var configuration = new GamebaseRequest.Logger.Configuration("USER_LOGGER_APP_KEY");
// configuration.enableCrashReporter = true; // Whether to send crash logs.
// configuration.enableCrashErrorLog = true; // Error log is excluded by default. Use it if you want to collect error logs.
Gamebase.Logger.Initialize(configuration);
}
static void Initialize(GamebaseRequest.Logger.Configuration configuration)
This function initializes the TOAST Logger SDK.
Definition Gamebase.cs:3199
Send a log to Log & Crash Server.
Definition Gamebase.cs:3178
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11