[logback-user] jmxConfigurator.objectName property replacement

Nico Serfontein nserfontein at gmail.com
Fri Mar 16 09:58:02 CET 2012


Hi,

I'm using 1.0.0 and my problem is not the same as one below.

When I have a property <property scope="context" name="INSANCE_NAME" 
value="testcluster" />
and a <jmxConfigurator 
objectName="user:type=ngp,name=logging,instance=${INSTANCE_NAME},context=DEM" 
/>
I will get a "${INSTANCE_NAME}" in jconsole and not "testcluster" (not 
even "INSTANCE_NAME_IS_UNDEFINED")

Please find screenshot attached.

Regards,
Nico



On 2012/03/14 09:03 AM, D.M. wrote:
> Hello,
>
> which version of logback do you use?
>
> If it occurres since 1.0.0. take a look at:
>
>> http://jira.qos.ch/browse/LBCLASSIC-312
> Yours,
> Dieter Mueller
>
> Am 13.03.2012 10:18, schrieb Nico Serfontein:
>> Hi,
>> I'm trying this flag in logback.xml: '<jmxConfigurator
>> objectName="user:type=ngp,name=logging,instance=${com.sun.aas.instanceName},context=DEM"
>> />'
>> But the instance in jconsole is '${com.sun.aas.instanceName}' and not my
>> cluster's name.
>> How can I get around this?
>> Regards,
>> Nico
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://mailman.qos.ch/mailman/listinfo/logback-user
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2012-03-16 at 10.55.14 AM.png
Type: image/png
Size: 81644 bytes
Desc: not available
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120316/f18e3623/attachment-0001.png>


More information about the Logback-user mailing list