Sep 15, 2012 at 12:54 AM
Edited Sep 15, 2012 at 12:54 AM
I am trying to use EL 5.0 with prism.
As part of the bootstrapper process - I create the Logger Facade adapter- which uses following code for logging...
var logwriter = EnterpriseLibraryContainer.Current.GetInstance<LogWriter>();
logwriter.Write(message, category.ToString(), (int)priority);
While the bootstrapper is in process some amount of logging is done by the framework.. and starts writing on to a file...
as part of the ConfigureContainer() , I register the EnterpriseLibraryContainer to use my unity container.
var configurator = new UnityContainerConfigurator(Container); // Read the configuration files and set up the container.
at this stage - any subsequent logging (through exception handling block) to the same logging Target Litener are getting written to a new file (increment file) because the earlier file is held by a different instance
Could any one please assist me in the same?