MS Ent. Library June 05 - Instrumentation & Log

1 post / 0 new
benzzon
benzzon's picture
MS Ent. Library June 05 - Instrumentation & Log
*** Disable instrumentation: (event logging etc..)

Problems with event-log filling up: http://scottonwriting.net/sowblog/posts/3406.aspx

Common Build Properties were changed from Default: http://blogs.msdn.com/tomholl/archive/2005/02/18/376187.aspx?Pending=true
 

*** Disable instrumentation:
1:
Open up the EnterpriseLibrary.sln (%ProgramFiles%\Microsoft Enterprise Library June 2005\src) and
modify the Configuration Properties\Build\Conditional Constants
of the EnterpriseLibrary.Common project.
Remove the USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER constants.
By removing these constants,
all of the internal Enterprise Library instrumentation will be disabled.
Change options for "Release"..
Recompile for "Release"..

2:
Run "(%ProgramFiles%\Microsoft Enterprise Library June 2005\src\CopyAssemblies.bat Release"
 
3:
Recompile your own project, check that new Enterprise dll's exist in your applications "bin"-directory..


 
*** Logging and instrumentation application block: