Custom Log Output (LogInfo)
[Player Network SDK & MSDK] Custom logging interface for recording key business debugging information, providing a more comprehensive context when the app crashes or encounters exceptions.
Supported channels: Firebase, CrashSight
Supported Platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.note
MSDK does not support Windows at this time
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
| Parameters | Type | Description |
|---|---|---|
| level | int | Log Levels 0-silent 1-error 2-warning 3-info 4-debug 5-verbose |
| tag | string | Log Module Category |
| log | string | Log Content |
| Parameters | Type | Description |
|---|---|---|
| level | int | Log Levels 0-silent 1-error 2-warning 3-info 4-debug 5-verbose |
| tag | std::string | Log Module Category |
| log | std::string | Log Content |
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetCrashService().LogInfo(1, "tag", "log");
GUA_NAMESPACE::GUACrashService::LogInfo(1, "Tag", "Log");