[infinispan-dev] cache name in logs

Manik Surtani manik at jboss.org
Thu Apr 28 17:47:15 EDT 2011


We do now support JBoss Logging.

https://issues.jboss.org/browse/ISPN-380

@Galder, does JBoss Logging have support for what Mircea mentioned below?

On 27 Apr 2011, at 13:21, Olaf Bergner wrote:

> Silly me, forgot the link: http://logback.qos.ch/manual/mdc.html.
> 
> Am 27.04.11 16:55, schrieb Mircea Markus:
>> Hi,
>> 
>> I'm looking into some logs for the a JBW demo : it has 4 caches deployed on each node and lots of topology changes happen. It's close to impossible to tell  which log pertains to which cache, especially around the DistributionInterceptorImpl.
>> Wouldn't it make sense that, for certain components, to include the name of the cache in the logs? IThis might be achieved with minimal changes by adding an additional param to the LogFactory.getLog(Class) method and let the logger itself do the heavy lifting.
>> e.g.
>> Log l = LogFactory.getLog(DistributionManagerImpl.class, "cacheName");
>> and on each call l.trace("A message") the logger might output, besides underlying log's format, the string "[cacheName] A message".
>> 
>> Wdyt?
>> Cheers,
>> Mircea
>> _______________________________________________
>> infinispan-dev mailing list
>> infinispan-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/infinispan-dev/attachments/20110428/e45068dc/attachment.html 


More information about the infinispan-dev mailing list