One way to achieve this would be to make a custom Lookup 
(https://logging.apache.org/log4j/2.x/manual/extending.html#Lookups) and 
include it in your PatternLayout's pattern. 

Sent from my iPhone

> On 2015/07/18, at 9:39, Gary Gregory <garydgreg...@gmail.com> wrote:
> 
> Hm... I do not think so. Patches welcome of course. What are your
> expectations for such a feature?
> 
> Gary
> 
> On Mon, Jul 13, 2015 at 8:24 PM, Clément Guillaume <cguilla...@hotpads.com>
> wrote:
> 
>> Is it possible to print the LoggerContext name in the output?
>> 
>> Clément
> 
> 
> 
> -- 
> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory

Reply via email to