Category Semantic Logging

Self Host WebApi with Owin and Unity

Using Unity together with a WebApi application and OWIN Hosting is a little bit more complicated compared to the standard WebApi and Unity. This blog shows how to host ASP.NET Web API in a console application, using OWIN to self-host the Web API framework and Unity as an IoC. The following steps need to be […]

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

MVC real time Diagnosis using SignalR

UPDATED 2014.04.12: latest version of SignalR used and all other packages. The idea of this example is to create a simple SignalR service, so that all Log messages can be sent to a client browser in real time. In the example, EventSource classes are used to send the logs to the ETW. Semantic Logging OUT-OF-PROCESS […]

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