private static void LogMore(CommonLogger logger) { IDictionary <string, object> logPairs = new Dictionary <string, object>() { { "Custom1", 123245 } }; Stopwatch sw = Stopwatch.StartNew(); logger.LogWarning(typeof(Program), "with MORE", "LM", logPairs, null, null); sw.Stop(); logger.LogInfo(typeof(Program), "How much time to log", "LM", null, sw.Elapsed); }
public static void LogWarning(object message) { #if UNITY_EDITOR CommonLogger.LogWarning(message); #endif }