Skip to main content

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

Supports Android, iOS, Windows platform.
note

MSDK does not support Windows at this time

Function Definition

void LogInfo(int level, string tag, string log);

Input Parameters

ParametersTypeDescription
levelintLog Levels
0-silent
1-error
2-warning
3-info
4-debug
5-verbose
tagstringLog Module Category
logstringLog Content

Code Example

UnionAdapterAPI.GetCrashService().LogInfo(1, "tag", "log");