Something like EnterpriseLibraryContainer in EntLib 2.0?

Topics: Building and extending application blocks, Logging Application Block
Sep 16, 2011 at 8:38 AM

Hi,

 

i need to get a reference of the flat file trace listeners in EntLib 2.0 once they get created. how do i do that in the 2.0 version? Is there something like EnterpriseLibraryContainer.Current.GetInstance that can help me achieve this?

 

Kalpna

Sep 17, 2011 at 11:04 AM

Hi Kalpna,

I'm afraid you can't achieve it in version 2.0 since the trace listener is encapsulated. You might resort on creating your own implementation of logger class.

 

Noel Angelo Bolasoc
Avanade Software
Avanade, Inc.
Contact Us