public static void Log(COLLADALogType type, string msg) { if (FLogger == null) { FLogger = new SimpleLogger(); } FLogger.Log(type, msg); }
public void Log(COLLADALogType LogType, string Message) { switch (LogType) { case COLLADALogType.Debug: System.Diagnostics.Debug.WriteLine(" " + Message); break; case COLLADALogType.Message: System.Diagnostics.Debug.WriteLine(" - " + Message); break; case COLLADALogType.Warning: System.Diagnostics.Debug.WriteLine(" * " + Message); break; case COLLADALogType.Error: System.Diagnostics.Debug.WriteLine(" ERR " + Message); break; } }
public void Log(COLLADALogType type, string msg) { switch (type) { case COLLADALogType.Debug: FLogger.Log(LogType.Debug, msg); break; case COLLADALogType.Message: FLogger.Log(LogType.Message, msg); break; case COLLADALogType.Warning: FLogger.Log(LogType.Warning, msg); break; case COLLADALogType.Error: FLogger.Log(LogType.Error, msg); break; default: throw new Exception("Invalid value for COLLADALogType"); } }