Last change
on this file since 4760 was
4710,
checked in by cneumuel, 14 years ago
|
#1254
- enabled full IIS7 compatibility
- removed dependency to HeuristicLab.Tracing
- changed server-side logging to wcf-tracing (needs to be enhanced to trace job-lifecycle)
|
File size:
1.1 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Diagnostics;
|
---|
6 |
|
---|
7 | namespace 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.