| 1234567891011121314151617 |
- using System;
- using UnityEngine;
- namespace HotPatch
- {
- public static class HotPatchLog
- {
- public const string Prefix = "[HotPatch]";
- public static void Info(string message) => Debug.Log(Prefix + " " + message);
- public static void Warning(string message) => Debug.LogWarning(Prefix + " " + message);
- public static string SafeUrl(Uri uri) => uri == null ? "<none>" :
- uri.GetComponents(UriComponents.SchemeAndServer | UriComponents.Path, UriFormat.UriEscaped);
- }
- }
|