Exemplo n.º 1
0
        public static void LogException(Exception exception, bool stackTrace, string title)
        {
            string name            = Assembly.GetCallingAssembly().GetName().Name;
            string exceptionString = Logger.CreateExceptionString(exception, stackTrace);

            Console.WriteLine("[" + name + "] Error: " + title + " " + exceptionString);
        }
Exemplo n.º 2
0
 public static void LogException(Exception exception, bool stackTrace)
 {
     Console.WriteLine("[" + Assembly.GetCallingAssembly().GetName().Name + "] Error: " + Logger.CreateExceptionString(exception, stackTrace));
 }