|
Kanda Foundation 0.8.0
|
The Kanda SDK provides a custom logging implementation, KandaLog, which wraps the Unity Logging package. This custom logger includes standardized tags and additional contextual information, ensuring consistency across all logs generated by the Kanda SDK.
KandaLog is designed to replace the typical UnityEngine.Debug.Log method. By using KandaLog, developers can produce logs that are easier to parse and understand, especially when debugging or reviewing logs from live applications.
Logs a simple message with the default LogType.Log.
Logs a message with a specified logging severity (e.g., LogType.Warning, LogType.Error).
Logs a message with additional context about the ECS world.
KandaLog is burstable, meaning that it can be used in Burst-compiled code. However, it lengths of logs are restricted to a maximum of 512 bytes. If logs exceed this length, a truncation exception might will be thrown.
We provide KandaLog.WriteManaged which can be triggered from managed code and does not impose restrictions on the length of logs.
Logs a message indicating that an RPC (Remote Procedure Call) is being sent.
Logs a message indicating that an RPC is being handled.
Logs in the Unity Console will appear as follows:
The added annotations makes it easier to observe app flows and discover relevant logs, for example when reviewing logs produced by dedicated servers.