public static void LogWarning(MonoLogChannel channel, object message) { if (Channels.Contains(channel) || Channels.Contains(MonoLogChannel.All)) { Debug.LogWarning("MySide [" + channel.ToString() + "]: " + message.ToString()); } }
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)); } }
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); } }