I m using Enterprise Library 5.0, Logging block, in a Silverlight project. In the project I want to be able to instantiate a logger, I believe the right class is LogWriterImpl. And I also wanted to be able to configure this LogWriterImpl with Xml configuration, so in the end I want something like this:
public class LoggerFactory
{
public LoggerWriter Create(string xmlFilePath)
{
// Load configuration from xmlFilePath
???
// Read the configuration and create the parameters for the LogWritterImpl
???
// In Silverlight there are several constructors for the LogWritterImpl class
// which one to use? which arguments to use?
var logger = new LogWritterImpl( /* which parameters go here? */ );
return logger;
}
}
谁能帮助我填补空白?
感谢您的时间!