Multiplayer Reference
Class ErrorLog
Namespace: PlayerIO.GameLibrary
Language: C# / .NET
The Player.IO ErrorLog service
Here are some simple examples:
Methods | |||
---|---|---|---|
public void |
Write an entry to the games error log. In development the error are just written to the console, in production they're written to a database and browseable from the admin panel |
||
public void |
Write an entry to the game's error log. In development the error are just written to the console, in production they're written to a database and browseable from the admin panel |
||
public void |
Write an entry to the game's error log. In development the errors are just written to the console, in production they're written to a database and browseable from the admin panel |
ErrorLog.WriteError
public void |
|
Write an entry to the games error log. In development the error are just written to the console, in production they're written to a database and browseable from the admin panel
Arguments
string | error |
A short string describing the error without details. Example 'Object not set to instance of an object' | |
string | details |
Describe the error in more detail if you have it. Example 'couldn't find the user 'bob' in the current game' | |
string | stacktrace |
The stacktrace (if available) of the error | |
Dictionary<string, string> | extraData |
Any extra data you'd like to associate with the error log entry |
ErrorLog.WriteError
public void |
|
Write an entry to the game's error log. In development the error are just written to the console, in production they're written to a database and browseable from the admin panel
Arguments
string | error |
A short string describing the error without details. Example 'Unhandled exception' | |
Exception | exception |
The exception that caused the error |
ErrorLog.WriteError
public void |
|
Write an entry to the game's error log. In development the errors are just written to the console, in production they're written to a database and browseable from the admin panel
Arguments
string | error |
A short string describing the error without details. Example 'Unhandled exception' |