2012-05-11 104 views
0

我在Silverlight項目中使用Enterprise Library 5.0,Logging塊。 在這個項目中,我希望能夠實例化一個記錄器,我相信正確的類是LogWriterImpl。 而且我也希望能夠配置此LogWriterImpl使用XML配置,所以最後我想是這樣的:在Enterprise Library 5.0中實例化和配置記錄器+ Silverlight

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; 
    } 
} 

誰能幫我填補空白?

謝謝你的時間!

回答

相關問題