qmo
qmo

Reputation: 3198

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 address for every single event written to the log.

Thanks!

Upvotes: 0

Views: 46

Answers (1)

qmo
qmo

Reputation: 3198

It looks like I can use IEventTextFormatter and inject the value there.

Upvotes: 1

Related Questions