Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
    public static void LogWarning(object message)
    {
#if UNITY_EDITOR
        CommonLogger.LogWarning(message);
#endif
    }