Ejemplo n.º 1
0
 public static void LogWarning(MonoLogChannel channel, object message)
 {
     if (Channels.Contains(channel) || Channels.Contains(MonoLogChannel.All))
     {
         Debug.LogWarning("MySide [" + channel.ToString() + "]: " + message.ToString());
     }
 }
Ejemplo n.º 2
0
 public static void Log(MonoLogChannel channel, object message, Exception exception)
 {
     if (Channels.Contains(channel) || Channels.Contains(MonoLogChannel.Exceptions) || Channels.Contains(MonoLogChannel.All))
     {
         Debug.LogException(new Exception("MySide [" + channel.ToString() + "]: " + message.ToString(), exception));
     }
 }
Ejemplo n.º 3
0
        public static void Log(MonoLogChannel channel, object message)
        {
            if (Channels.Contains(channel) || Channels.Contains(MonoLogChannel.All))
            {
                string details = "[" + System.DateTime.UtcNow.ToString("HH:mm:ss.fff") + "] [" + channel.ToString() + "]: " + message.ToString();

                //System.Diagnostics.Trace.TraceInformation(details);

                Debug.Log(details);

                //System.Diagnostics.Debug.WriteLine(details);
            }
        }