LogInfo
[Player Network SDK & MSDK] Prints custom logs to record critical debugging information and reflect the entire contextual environment of app crashes and exceptions.
Supported channels: Firebase, CrashSight
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.note
MSDK currently does not support Windows.
Function Definition
- Unity
- Unreal Engine
void LogInfo(int level, string tag, string log);
static void LogInfo(int level, const std::string &tag, const std::string &log);
Input Parameters
- Unity
- Unreal Engine
| Parameter | Type | Description |
|---|---|---|
| level | int | Log level 0: silent 1: error 2: warning 3: inifo 4: debug 5: verbose |
| tag | string | Log module category |
| log | string | Log content |
| Parameter | Type | Description |
|---|---|---|
| level | int | Log level 0: silent 1: error 2: warning 3: inifo 4: debug 5: verbose |
| tag | std::string | Log module category |
| log | std::string | Log content |
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetCrashService().LogInfo(1, "tag", "log");
GUA_NAMESPACE::GUACrashService::LogInfo(1, "Tag", "Log");