[logback-user] Evaluable properties

Aleksey Didik didik at magenta-technology.ru
Mon Feb 8 10:17:09 CET 2010


Hello all,
patch for evaluable properties functionality was added to JIRA

http://jira.qos.ch/browse/LBCLASSIC-182

Best regards,
Aleksey Didik.

01.02.2010 20:37, Aleksey Didik пишет:
> Hello Ceki
>
> done http://jira.qos.ch/browse/LBCLASSIC-182.
>
> I'll try to make patch if you want :)
>
> Best regards,
> Aleksey.
>
>
>
> 01.02.2010 20:17, Ceki Gülcü пишет:
>>
>> Hello Aleksey,
>>
>> What you describe would be a pretty useful feature to have. Can you 
>> please enter an enhancement request on our jira?
>>
>> Best regards,
>>
>> On 01/02/2010 11:12 AM, Aleksey Didik wrote:
>>> Hello all,
>>>
>>> I need to name my log file as /${host-name}.log/ and the question is,
>>> how can I do it?
>>> In logback.xml I can use properties definition, but it's static, not
>>> dynamical evaluabled.
>>> System properties can't help me to, I can't define host on every
>>> application start.
>>> I can use LoggerContext, but I don't want to have 'compile' 
>>> dependencies
>>> on logback classes.
>>>
>>> In version 0.9.17 was made possibility to save formatted timestamp in
>>> property.
>>> May be possible to create property evaluator tag, to dynamical define
>>> some properties value?
>>> Something like this:
>>>
>>> <property name="host name" evaluator="org.xxx.PropertyEvaluator">
>>> <parameter name="host type">value</parameter>
>>> </property>
>>>
>>> Evaluator will be called on property initialization with listed 
>>> parameters.
>>> I can make necessary patch for logback.
>>>
>>> May be I have said well-known truths :) Sorry and correct me.
>>>
>>> Best regards,
>>> Aleksey Didik
>>>
>>>
>> _______________________________________________
>> Logback-user mailing list
>> Logback-user at qos.ch
>> http://qos.ch/mailman/listinfo/logback-user
>>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user



More information about the Logback-user mailing list