Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/09 14:12:17 (16 years ago)
Author:
kgrading
Message:

removed EventLogging (#622)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Common/3.2/Logging.cs

    r1775 r1798  
    5656
    5757    private Logging() {     
    58       eventLogger = new EventLog("Hive Client");         
     58      //eventLogger = new EventLog("Hive Client");         
    5959    }
    6060
     
    6565    /// <param name="message">the message</param>
    6666    public void Info(String source, String message) {
    67       eventLogger.Source = source;
    68       eventLogger.WriteEntry(message);     
    69       eventLogger.Close();
     67      DateTime current = DateTime.Now;
     68      Debug.WriteLine(current + " - " + source + ": " + message);
     69
     70    //  eventLogger.Source = source;
     71    //  eventLogger.WriteEntry(message);     
     72    //  eventLogger.Close();
    7073    }
    7174
     
    7679    /// <param name="message">the message</param>
    7780    public void Error(String source, String message) {
    78       eventLogger.Source = source;
     81      DateTime current = DateTime.Now;
     82      Debug.WriteLine(current + " - " + source + ": " + message);
     83     
     84      //eventLogger.Source = source;
    7985      //, EventLogEntryType.Error
    80       eventLogger.WriteEntry(message);
    81       eventLogger.Close();
     86      //eventLogger.WriteEntry(message);
     87      //eventLogger.Close();
    8288    }
    8389
     
    8995    /// <param name="e">the exception</param>
    9096    public void Error(String source, String message, Exception e) {
    91       eventLogger.Source = source;
    92       eventLogger.WriteEntry(message +"\n" + e.ToString());
    93       eventLogger.Close();
     97      DateTime current = DateTime.Now;
     98      Debug.WriteLine(current + " - " + source + ": " + e + message);
     99    //  eventLogger.Source = source;
     100    //  eventLogger.WriteEntry(message +"\n" + e.ToString());
     101    //  eventLogger.Close();
    94102    }
    95103  }
Note: See TracChangeset for help on using the changeset viewer.