New version of "Enterprise Library - Real Time Log Viewer" has been released.
Please visit http://www.mijalko.com/realtimelogviewer
Of course, it is free.
Showing posts with label Enterprise Library. Show all posts
Showing posts with label Enterprise Library. Show all posts
Thursday, September 03, 2009
Saturday, August 15, 2009
Enterprise library - real time log viewer
I made application for looking logs from enterprise library - logging application block in real time.
Application is still in alpha phase but I believe that it can be useful to someone even unfinished as it is. So, expect upgrade of this application, soon.
Link is http://www.mijalko.com/realtimelogviewer
Application is still in alpha phase but I believe that it can be useful to someone even unfinished as it is. So, expect upgrade of this application, soon.
Link is http://www.mijalko.com/realtimelogviewer
Sunday, April 26, 2009
MSTest and TeamCity trouble
When I run test from Visual Studio all tests pass but when I setup test environment from Teamcity half of my test fails.
Problem was because some of assemblies was missing in mstest environment. Actually, I have used Enterprise library and I had custom trace listener. Test project had that trace listener in references. But when Teamcity runs mstest my assembly was missing in build agent working folder.
All assemblies that are not used directly in test (for example class from my assembly was dynamically loaded by enterprise library application logging block) will not be copied to test folder. Therefor, those test methods should be decorated with attribute like:
Somehow, this was not necessary when you run tests from Visuals Studio IDE.
I hope that I save you some time.
Problem was because some of assemblies was missing in mstest environment. Actually, I have used Enterprise library and I had custom trace listener. Test project had that trace listener in references. But when Teamcity runs mstest my assembly was missing in build agent working folder.
All assemblies that are not used directly in test (for example class from my assembly was dynamically loaded by enterprise library application logging block) will not be copied to test folder. Therefor, those test methods should be decorated with attribute like:
[DeploymentItem("MyTraceListener.dll")]
Somehow, this was not necessary when you run tests from Visuals Studio IDE.
I hope that I save you some time.
Tuesday, November 25, 2008
Exception handling block and log in the same file
If your exception handling block log exceptions in separate file, beside the fact that you set everything to use existing log category, maybe you need to set "UseDefaultLogger" to have "true" value.
Enterprice library, exception handling and logging application block
I have started to get this error message on deployment configuration:
Logging works well but logging exceptions failed.
It seems that I was forgot to deploy Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll. When I put this assembly everything started to work fine.
The current build operation (build key Build Key[Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.ExceptionPolicyImpl, ...]) failed: The type 'Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' cannot be resolved. Please verify the spelling is correct or that the full type name is provided. (Strategy type Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy, index 2)
Logging works well but logging exceptions failed.
It seems that I was forgot to deploy Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll. When I put this assembly everything started to work fine.
Subscribe to:
Posts (Atom)