Benj Nunez
unread,Sep 1, 2010, 9:41:07 AM9/1/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Hi,
As I understand it, you indicated that:
"The api it (your service) references has log4net logging in it but
requires the consumer to configure it and call the
XmlConfigurator.Configure() method to actually get logging running."
From what I've researched, I found a sample source on how the
XmlConfigurator.Configure() is used like so:
using Com.Foo;
// Import log4net classes.
using log4net;
using log4net.Config;
public class MyApp
{
private static readonly ILog log =
LogManager.GetLogger(typeof(MyApp));
static void Main(string[] args)
{
// BasicConfigurator replaced with XmlConfigurator.
XmlConfigurator.Configure(new
System.IO.FileInfo(args[0])); // <--- check this out
log.Info("Entering application.");
Bar bar = new Bar();
bar.DoIt();
log.Info("Exiting application.");
}
}
Source:
http://logging.apache.org/log4net/release/manual/configuration.html
You may want to check the link I have provided above. It looks to me
like you simply
need to create a config file that will be read by your service (which
would in turn uses
an api underneath which has log4net logging access).
Regards,
Benj