Provides data Dump events.
Inheritance: System.EventArgs
Exemplo n.º 1
0
 /// <summary>
 /// Event handler for Error events
 /// </summary>
 /// <param name="o">The sending object</param>
 /// <param name="e">The event arguments as LogEventArgs</param>
 private static void PrintLogError(object o, LogEventArgs e)
 {
     Errors += 1;
     Console.WriteLine(" [Error #{0:d4}] Location : {1} Reason : {2}", Errors, o.ToString(), e.Message);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Event handler for Warning events
 /// </summary>
 /// <param name="o">The sending object</param>
 /// <param name="e">The event arguments as LogEventArgs</param>
 private static void PrintLogWarning(object o, LogEventArgs e)
 {
     Warnings += 1;
     if (Verbose)
     {
         Console.WriteLine(" [Warning #{0:d4}] Location : {1} Reason : {2}", Warnings, o.ToString(), e.Message);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Event handler for Debug events
 /// </summary>
 /// <param name="o">The sending object</param>
 /// <param name="e">The event arguments as LogEventArgs</param>
 private static void PrintLogDebug(object o, LogEventArgs e)
 {
     DebugMessages += 1;
     if (VeryVerbose)
     {
         Console.WriteLine(" [Debug #{0:d4}] {1}", DebugMessages, e.Message);
     }
 }