Questions tagged [slab]

Semantic Logging Application Block (SLAB) is designed to help .NET developers move from the unstructured logging approach towards the strongly-typed (semantic) logging approach, making it easier to consume logging information, especially when there is a large volume of log data to be analyzed.

Semantic Logging Application Block (SLAB) is designed by the Microsoft patterns & practices team to help .NET developers move from the unstructured logging approach towards the strongly-typed (semantic) logging approach, making it easier to consume logging information, especially when there is a large volume of log data to be analyzed. When used out-of-process, the Semantic Logging Application Block uses Event Tracing for Windows (ETW), a fast, lightweight, strongly typed, extensible logging system that is built into the Windows operating system.

The Semantic Logging Application Block enables you to use the EventSource class and semantic log messages in your applications without moving away from the log formats you are familiar with (such as database, text file, Windows Azure table storage). Importantly, you do not need to commit to how you consume events when developing business logic; you have a unified application-specific API for logging and then you can decide later whether you want those events to go to ETW or alternative destinations.

28 questions
1
vote
2 answers

Why SLAB SqlDatabaseSink stopped writing to Traces table?

SLAB SqlDatabaseSink stopped writing to Traces table I added a FlatFileSink in parallel to make sure the listener is not the issue, which writes fine to a file. I also have a Unit Test for the SqlDatabaseSink which works fine, but when subscribing…
siliond
  • 83
  • 9
1
vote
1 answer

How does one change a message for an event in Semantic Logging Application Block

I've created an EventSource in my application, which is using SLAB. It's working fine, for the most part. I had an initial message, but I decided to change the message. Whenever the out-of-process logger receives an event, it uses the old message…
Blake
  • 308
  • 3
  • 11
1
vote
1 answer

SLAB, out-of-process: I cannot view the events when running semantic logging as service

I can save the logged events in the database (with custom database sink) when running the semantic logging as console, but I cannot do the same when running as service. What could be wrong here?
Ovidiu Caba
  • 31
  • 1
  • 5
1
vote
2 answers

SLAB, out-of-process: changing the signature of an event source method causes incorrect event logging

I implemented an event source class for logging events. After repeatedly changing the signature (parameters names and parameters types) of one method that logs events, the events are no longer correctly logged. For instance when an event is logged,…
Ovidiu Caba
  • 31
  • 1
  • 5
1
vote
0 answers

Timestamps for log events are 10 minutes off

I recently started using ETW with SLAB and noticed that time stamps for events are a bit off. Is there any reason that time stamps outputted from EventSource.WriteEvent would be 10 minutes earlier than when the event actually occurred? This is not a…
Cameron Tinker
  • 9,634
  • 10
  • 46
  • 85
0
votes
0 answers

Slab based commission calculation in Power Bi DAX

I need to calculate slab based commission in Power BI. Below is a sample of the commission table. The percentage commission only applies to the amount that is considered in that category. So for a sale of $35000 the commission would be calculated…
M.Kroeze
  • 67
  • 1
  • 7
0
votes
1 answer

Performance benefits of kzalloc() / kmem_cache_zalloc()?

Apart from clean way to write code, is there any other benefit (specially from performance point of view) to use kzalloc() / kmem_cache_zalloc() as compare to kmalloc() / kmem_cache_alloc() + memset()? I tried to measure their performance, but…
0
votes
1 answer

No events registered with SemanticLogging service on single server

I'm trying to get SemanticLogging-svc.exe from the Enterprise Library Semantic Logging Application Block to listen to events for my custom event source and dump them to console. This works fine for my localhost and for a development server, but I…
0
votes
2 answers

How to use Semantic Logging Application Block (SLAB) to configure multiple sinks based on level in C# (in-process)

When setting up Semantic Logging Application Block (SLAB) to use multiple sinks (for example a flat file and rolling file) it's not writing to each sink based on the level in my logic; I am trying to understand why. I can get it to write to…
mgalpy
  • 369
  • 4
  • 13
0
votes
1 answer

Semantic logging (SLAB) for MVC Azure Webapp

Am trying to implement SLAB for my Azure Web app (In Process) and my listner is Azure table Storage (table conection string) , the problem am facing is -“EventSource.IsEnabled() = always returns false” (Am running the application from VS2013 with…
0
votes
1 answer

Can I add a new version of and event method and use same event ID?

With respect to versioning, the documentation for the Semantic Logging Application Block recommends: If you do need to modify your EventSource class, you should restrict your changes to adding methods to support new log messages, and adding…
maxwellb
  • 13,366
  • 2
  • 25
  • 35
0
votes
1 answer

Can you please explain on how we can set ActivityId in Semantic Logging by using .Net 4.5.1

Can you please explain on how we can set ActivityId in Semantic Logging by using .Net 4.5.1?
0
votes
1 answer

Injecting/Including a value for every WriteEvent in SLAB

We are using Semantic Logging Application Block (SLAB) and have 300+ logging methods currently. Is there a way to easily include a value in every single WriteEvent call without having to update all of the logging methods? E.g. include client's IP…
qmo
  • 3,128
  • 3
  • 17
  • 23
1
2