Bruno
Bruno

Reputation: 4655

Essential.Diagnostics TraceEvent with data

I am using Essential.Diagnostics library for logging and it works well. I have set up a SqlDatabaseTraceListener and after running the install sql script coming with the library, I can log activity in the database.

My question : There is a Data field in the logging table, and the diagnostics_Trace_AddEntry stored procedure has a @Data parameter.

How can I use the TraceEvent functionality for adding Data with the logging operation?

Thanks

Upvotes: 2

Views: 447

Answers (1)

Bruno
Bruno

Reputation: 4655

Well...

TraceData does the job.

thanks fretje

Upvotes: 2

Related Questions