Gamebase SDK for Unity 2.75.0 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ Error()

static void Error | ( | string | message,
|  | Dictionary< string, string > | userFields = `null`
| ) |  |
| static

Send a log to Log & Crash Server for analyzing the string message with error level.

Since
  Added 2.6.0.

Parameters

  message | Message to send to the log
  userFields | Additional information to send to the log

Example Usage :

public void ErrorSample()
{
Dictionary<string, string> userFields = new Dictionary<string, string>()
{
{ "KEY_1", "VALUE_1" },
{ "KEY_2", "VALUE_2" },
};
Gamebase.Logger.Error("MESSAGE", userFields);
}