activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Logging a message for Multi kahaDB
Date Fri, 15 Nov 2013 11:31:01 GMT
darn formatting. I pushed that change, so you can see the mapping with:

log4j.logger.org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter=DEBUG


https://git-wip-us.apache.org/repos/asf?p=activemq.git;a=blobdiff;f=activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java;h=d10c4eb9d8fa11d41ff7ee37f9a2998a2db5ff6d;hp=c8fe75bf60163ad7b6a7d4f6ac09551f55aa8d60;hb=ff593bf3;hpb=c60af641653d69a0a7fce6088f2954f41b204a0a

On 15 November 2013 11:17, Gary Tully <gary.tully@gmail.com> wrote:
> you need a little enhancement to add some logging to the choice of
> adapter on a per destination basis. The choice is made when the
> destination is created. A mod to
> org.apache.activemq.store.kahadb.MultiKahaDBPersistenceAdapter#getMatchingPersistenceAdapter
> something like:
>
> git diff activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java
>
> diff --git a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java
> b/activ
>
> index c8fe75b..d10c4eb 100644
>
> --- a/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java
>
> +++ b/activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/MultiKahaDBPersistenceAdapter.java
>
> @@ -171,6 +171,7 @@ public class MultiKahaDBPersistenceAdapter extends
> LockableServiceSupport implem
>
>              }
>
>          }
>
>          startAdapter(filteredAdapter.getPersistenceAdapter(),
> destination.getQualifiedName());
>
> +        LOG.debug("destination {} matched persistence adapter {}",
> new Object[]{destination.getQualifiedName(), filteredAda
>
>          return filteredAdapter.getPersistenceAdapter();
>
>      }
>
>
>
> On 15 November 2013 08:53, Sophia Wright <sophiawright43@gmail.com> wrote:
>> I tried enabling DEBUG level logging but it is not logging for destinations
>> in persistence store. I want to log for messages, which persistence store
>> they are going into.
>>
>>
>>
>> --
>> View this message in context: http://activemq.2283324.n4.nabble.com/Logging-a-message-for-Multi-kahaDB-tp4674011p4674524.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>
> --
> http://redhat.com
> http://blog.garytully.com



-- 
http://redhat.com
http://blog.garytully.com

Mime
View raw message