Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using HeuristicLab.Tracing.Properties;
|
---|
6 | using System.IO;
|
---|
7 | using log4net.Config;
|
---|
8 |
|
---|
9 | namespace HeuristicLab.Tracing {
|
---|
10 | public class HiveLogger: Logger {
|
---|
11 | private static void Configure() {
|
---|
12 | if (IsConfigured) return;
|
---|
13 | IsConfigured = true;
|
---|
14 | if (string.IsNullOrEmpty(Settings.Default.TracingLog4netConfigFile)) {
|
---|
15 | Settings.Default.TracingLog4netConfigFile =
|
---|
16 | Path.Combine(
|
---|
17 | PluginInfrastructure.Properties.Settings.Default.PluginDir,
|
---|
18 | "HeuristicLab.Hive.log4net.xml");
|
---|
19 | }
|
---|
20 | XmlConfigurator.ConfigureAndWatch(
|
---|
21 | new FileInfo(Settings.Default.TracingLog4netConfigFile));
|
---|
22 | Info("logging initialized " + DateTime.Now);
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.