I am reading the ${name} which contains value as UserService from application.properties, I need to conditionally perform these below operation in logback.xml
<property name="myprop"
value="#{'${name}' == 'UserService' ? '1' : '2' }"/>
But when I print myProp i am getting
#{'UserService' == 'UserService' ? '1' : '2' }
But I need to print it either 1 or 2 based on condition. Or If My approach is wrong, how can I do the condtional checking in logback.xml