Changeset 7157 for trunk/sources/HeuristicLab.Services.Hive.DataAccess
- Timestamp:
- 12/08/11 19:24:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Hive.DataAccess/3.3/Logger.cs
r6983 r7157 47 47 public Logger(string name, string source) { 48 48 try { 49 if (!EventLog.SourceExists(source)) {50 EventLog.CreateEventSource(source, name);51 }52 49 log = new EventLog(name); 53 50 log.Source = source; 54 51 } 55 catch ( SecurityException) { }52 catch (Exception) { } 56 53 } 57 54 … … 62 59 } 63 60 } 64 catch ( SecurityException) { }61 catch (Exception) { } 65 62 } 66 63 … … 71 68 } 72 69 } 73 catch ( SecurityException) { }70 catch (Exception) { } 74 71 } 75 72 }
Note: See TracChangeset
for help on using the changeset viewer.