Gamebase SDK for Unity 2.75.1 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

  configuration | The 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);
}
Toast.Gamebase.Gamebase.Logger.Initialize
static void Initialize(GamebaseRequest.Logger.Configuration configuration)
This function initializes the TOAST Logger SDK.
Definition: Gamebase.cs:3249
Toast.Gamebase.Gamebase.Logger
Send a log to Log & Crash Server.
Definition: Gamebase.cs:3228
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11