Invoke log4net configurator in pCampBot.exe in order to get OpenSim sylte logging

0.7.3-extended
Justin Clark-Casey (justincc) 2012-05-18 00:49:39 +01:00
parent 996abe1ea5
commit 6538dd24bb
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,7 @@ using System;
using System.Reflection; using System.Reflection;
using System.Threading; using System.Threading;
using log4net; using log4net;
using log4net.Config;
using Nini.Config; using Nini.Config;
using OpenSim.Framework; using OpenSim.Framework;
using OpenSim.Framework.Console; using OpenSim.Framework.Console;
@ -52,6 +53,8 @@ namespace pCampBot
[STAThread] [STAThread]
public static void Main(string[] args) public static void Main(string[] args)
{ {
XmlConfigurator.Configure();
IConfig config = ParseConfig(args); IConfig config = ParseConfig(args);
if (config.Get("help") != null || config.Get("loginuri") == null) if (config.Get("help") != null || config.Get("loginuri") == null)
{ {