Questions tagged [semantic-logging]

Designed to provide to .NET developers a 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.

What is Semantic Logging?

Semantic Logging (formerly know at the Semantic Logging Application Block or SLAB) is designed by the 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, Semantic Logging uses Event Tracing for Windows (ETW), a fast, lightweight, strongly typed, extensible logging system that is built into the Windows operating system.

Semantic Logging 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, Azure table storage). Also, 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.

How do I use Semantic Logging?

Official releases are available via NuGet. You can also head to msdn.com for additional information, documentation, videos, and hands-on labs.

Building

To build the solution, clone the Github repo and run msbuild.exe from the project’s build folder. You'll need to use the Visual Studio Developer Command Prompt. Some of the unit tests require a SQL database.

How do I contribute?

See CONTRIBUTING.md in for more details.

Release notes

Release notes in each release are available.

You can use its Gitter for quick questions.

36 questions
1
vote
1 answer

How to update EventSource schema

During the development of my custom EventSource I need to change the count and types of an event's parameters. Since I've used this EventSource for a while, it had already registered its events dynamically. Is it possible to change or delete this…
Attila Cseh
  • 235
  • 2
  • 13
1
vote
0 answers

Semantic Logging Exception: Keywords values larger than 0x0000100000000000 are reserved for system use

I am using the Semantic Logging for my ASP.NET MVC app. https://github.com/mspnp/semantic-logging (SQL database) installed via nuget Install-Package EnterpriseLibrary.SemanticLogging.Database Here is the code that throws the exception. var…
Ronald Ramos
  • 5,200
  • 2
  • 15
  • 12
1
vote
2 answers

How to change the log level in semantic logging at run time?

How can I change the log level at run time, using semantic logging? In my Global.asax Application_Startup I have the following code: var listener = new ObservableEventListener(); listener.EnableEvents((EventSource)…
Paul Fryer
  • 9,268
  • 14
  • 61
  • 93
1
vote
1 answer

Semantic logging In-Proc and Out-Proc

I'm using Semantic logging with Windows Azure Websites, I wonder Using Semantic logging using Azure website and store log in Azure Table storage and Azure SQL db is Inproc or out Proc ? Can anyone elaborate more on this please?
Neo
  • 15,491
  • 59
  • 215
  • 405
1
vote
1 answer

How do I store my Log into Azure table storage I used Semantic Logging

For application logging I have used Semantic Logging but I want to save logging into Azure table storage, now I just displayed it on Console. static void Main(string[] args) { //create a listner and subscribe to event source …
Neo
  • 15,491
  • 59
  • 215
  • 405
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
0 answers

Warning C4538 when using System::Diagnostics::Tracing::EventSource on c++

I'm trying to create an event source class for SLAB using C++. I've already tried creating one using C# so I'm really clueless on the following issue. So basically I'm using the System::Diagnostic::Tracing EventSource class provided in .Net.…
0
votes
0 answers

How to create reusable a semantic logging library?

I am currently in the process of designing a .net logging library that could potentially be used across different solutions in our organisation as a nuget package. However, I also want to make sure that we do semantic logging so that the logs are…
MichaelChan
  • 1,808
  • 17
  • 34
0
votes
1 answer

adding column to the traces table - Enterprise logging database

I'm using the Enterprise semantic logging on sql server database I need to add one or more specif columns in the Traces table instead of adding value in Payload column Maye the only way is to create a custom SINK, but I didn't find how to do…
CDominik
  • 115
  • 1
  • 10
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
1 answer

Semantic Logging permissions error

I am trying to configure semantic logging on my Windows 8.1 Enterprise environment. Although I have followed the steps specified by Microsoft here I get the following error when Semantic Logging service tries to write an Event from ETW. The …
MariaMadalina
  • 479
  • 6
  • 20
0
votes
1 answer

How can I get the trace category from TraceListener?

So I subclassed TraceListener in order to pipe output to EntLib6 SLAB without the need for injecting a customer logger implementation. The problem that I'm running into now is that I need to see that category that was provided with…
Sinaesthetic
  • 11,426
  • 28
  • 107
  • 176
0
votes
1 answer

semantic logging - Azure sink query

I am using semantic logging application block and using in proc to log entries into azure table storage(SLABLogsTable). But is there a way to query the SLABLogsTable using StorageClient?
Hari Subramaniam
  • 1,814
  • 5
  • 26
  • 46
0
votes
1 answer

Semantic Logging to multiple files

I need to log my web application errors to three different files For Ex:- Dashboard --> DashboardLog.Log Login Information --> LoginLog.Log AAA Section --> AAALog.Log I have tried to change the fileName at the run time according…
janitheshan
  • 325
  • 2
  • 11
  • 25
0
votes
1 answer

Deleting older azure table storage log entries created by semantic logging

I have implemented semantic logging to log entries into the azure table storage. Now I want to remove old log entries(say older than 30 days) from the azure table. The problem is that the partitionKeys and RowKeys in the azure table are dynamically…
nitinvertigo
  • 1,180
  • 4
  • 32
  • 56