Re: Injecting properties into LoggingEvent

2016-10-24 Thread Dominik Psenner
Hm, we could provide a scripting language that allows you to customize logging event properties but that scripting language wont ever suffice. You are probably best off by implementing a facade that matches your needs and hides the heavy lifting done the used logging framework. On 24 Oct 2016

Re: Injecting properties into LoggingEvent

2016-10-24 Thread Nicholas Duane
Thanks. We already have written a custom appender. Ideally I want the category set by the time the event makes it to our appender. As I mentioned, what I'm trying to do is the following: When someone logs an event I want to populate a property named "category" on the LoggingEvent which is

Re: Injecting properties into LoggingEvent

2016-10-24 Thread Dominik Psenner
Yet another possible solution to your problem could be to do something like: https://www.loggly.com/blog/why-json-is-the-best-application-log-format-and-how-to-switch/ On 2016-10-24 07:39, Dominik Psenner wrote: Ps: this might also something that you should look at.