Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Tracing/3.3/Logger.cs @ 4772

Last change on this file since 4772 was 4772, checked in by cneumuel, 13 years ago

#1260

  • added LogServiceReader to display log for slave without writing to local files
  • aborted jobs with childjobs now got back to state WaitForChildJob (instead of Offline)
  • lifecyclemanager now knows about available plugins (does not yet work perfectly)
File size: 1.1 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Diagnostics;
6
7namespace HeuristicLab.Hive.Tracing {
8  public static class Logger {
9    private static string source = "System.ServiceModel";
10
11    public static void Debug(object message) {
12      TraceSource ts = new TraceSource(source);
13      ts.TraceInformation(message.ToString());
14      ts.Close();
15    }
16
17    public static void Info(object message) {
18      TraceSource ts = new TraceSource(source);
19      ts.TraceInformation(message.ToString());
20      ts.Close();
21    }
22
23    public static void Warn(object message) {
24      TraceSource ts = new TraceSource(source);
25      ts.TraceInformation(message.ToString());
26      ts.Close();
27    }
28
29    public static void Error(object message) {
30      TraceSource ts = new TraceSource(source);
31      ts.TraceInformation(message.ToString());
32      ts.Close();
33    }
34    public static void Error(object message, Exception e) {
35      TraceSource ts = new TraceSource(source);
36      ts.TraceInformation(message.ToString());
37      ts.Close();
38    }
39  }
40}
Note: See TracBrowser for help on using the repository browser.