Category SLAB

AOP with ASP.NET Web Api

This blog demonstrates the usage of filters and unity interface interception with an ASP.NET Web Api application. AOP = Aspect oriented programming. This programming paradigm can be used to add functionality to existing methods. In the following example, we wrap the controller method with diagnosis using filters and then we wrap the business manager with […]

Creating a silent msi for Semantic Logging OUT-OF-PROCESS service using WiX

In a previous blog, the OUT-OF-PROCESS Semantic Logging service was installed from hand. (Power shell script and xml configuration). Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS A typical end user cannot be expected to do this. It would be better, if an msi could be created so that a fully pre-configured service can be […]

Windows 8 App with Semantic Logging

Windows 8 Pro or Windows 8 Enterprise offers the ability to use Semantic Logging so that a Window 8 App can log to a central database using the OUT-OF-PROCESS service from the Enterprise Library. (ETW with EventSource in the Windows App) Here’s a simple Howto: Step 1: Install the Enterprise Library Semantic Logging OUT-OF-PROCESS service. […]

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 […]