With the latest update of the Semantic Logging Application Block – Out-of-process Service NuGet Package, the user under which the Windows Service is executed has changed. In hopes to save you countless hours of debugging I am sharing the configurations that should be used on Azure Cloud Services.
When you start the Out-of-Process service be sure to specify the LocalSystem account.
SemanticLogging-svc.exe -s -a=LocalSystem
Failure to execute under the right account will prevent the Out-of-Process service from logging Events to Azure Table Storage.
- Semantic Logging Application Block – Out-of-process Service
- Semantic Logging Application Block – Source Code & Samples
What is SLAB?
The Semantic Logging Application Block (SLAB) provides a set of destinations (sinks) to persist application events published using a subclass of the EventSource class from the System.Diagnostics.Tracing namespace. Sinks include Azure table storage, SQL Server databases, file, console and rolling files with several formats and you can extend the block by creating your own custom formatters and sinks. The console sink is part of this nuget package. Other Sinks mentioned above are available as separate nuget packages. For the sinks that can store structured data, the block preserves the full structure of the event payload in order to facilitate analysing or processing the logged data.