NLog - Write to another target if message starts with certain words

Viewed 228

I would like to know if it is possible to write the logs to another target if the message that we want to write begins with certain words, a prefix.

I can't do it at the class level right now, that's why I'm checking if it's possible to get what I want in an easier way than modifying the code

1 Answers
Related