Category Logging
Enterprise Library 6, Unity 3 and MVC 4, LifetimeManagers Part 2
This is an example of an MVC Application using Register by Convention and Unity.MVC Use nuget to add Unity.MVC to the MVC4 application. (Unity bootstrapper for ASP.NET MVC 3.0.1304.0) Now edit the UnityMvcActivator in the App_Start folder. The following code must be included. Then change the UnityConfig class. Add a custom function and use this […]
Enterprise Library 6, Unity 3 with ASP.NET MVC 4 Part 1
This example shows you how to setup a simple ASP.NET MVC 4 application using Enterprise Library Unity 3 for its dependency injection. Firstly use nuget to add the Unity 3 package: Create a new static class which will be used to get the root UnityContainer. Create a new class which inherits from the DefaultControllerFactory, otherwise […]
Enterprise Library 6, Semantic Logging, Part 4 advantages, customising
This post continues on from part 3: Enterprise Library 6, Semantic Logging, Part 3, Getting into the details In-process / out of process logging Again, here’s the diagrams showing the difference between in-process and out-of-process logging. (Taken from the EL6 documentation) In-Process OUT-OF-PROCESS As soon as performance in your logging is required, out-of-process should be […]
Enterprise Library 6, Semantic Logging, Part 3, Getting into the details
This post continues on from part 2: Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS Keywords Keywords can be used if in the EventSource and later in the listener to defined groups. – Keywords must be a number to the power of 2, or 2^X because it is used as a bit array. – Custom […]
Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS
This blog demonstrates how to log to the database using semantic logging (SLAB) OUT-OF-PROCESS in a MVC4 application. Follow the instructions as shown in part 1 Enterprise Library 6, Semantic Logging, Part 1, database listener UPDATE: The service is now available as a NuGet package. Download and install the OUT-OF-PROCESS service: http://go.microsoft.com/fwlink/p/?LinkID=290903 Follow the instructions […]
Enterprise Library 6, Semantic Logging, Part 1, database listener
This is a simple MVC sample which shows how to set up a basic Enterprise Library Semantic Logging (SLAB) application which logs to the database. Create a simple MVC project Get the Semantic Logging from nuget: These nuget packages adds just 4 new assemblies as shown (No Unity): Install the scripts to your database: Scripts […]
Enterprise Library 5.0 db logging
I was looking for a easy to understand example of EL 5.0 database logging and couldn’t find one, so here’s a simple example of Enterprise Library 5.0 .NET logging. It logs to the database. Just download from github. Have fun. code: https://github.com/damienbod/ELDBLogging Database Scripts \EntLib50Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts The config tool is here: C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin\EntLibConfig.exe to […]
