Invoke log4net configurator in pCampBot.exe in order to get OpenSim sylte logging
parent
6501b1b1bb
commit
565c73751c
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue