티스토리 뷰

공부

[Spring] logback.xml use spring property

승가비 2020. 5. 14. 01:43
728x90
<springProperty name="abc" source="a.b.c"/>
<appender ...>
    <remoteHost>${abc}</remoteHost>
    ...
</appender>

https://stackoverflow.com/questions/36743386/accessing-the-application-properties-in-logback-xml

 

Accessing the application properties in logback.xml

Is it possible to access application properties of spring boot in log back xml. application.properties dummy.property=hello logback.xml ${dummy.property} This did not work. Does any one have ...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Python] set locale, datetime  (0) 2020.05.14
[Spring] Class path contains multiple SLF4J bindings, exclusion library  (0) 2020.05.14
[CSS] button animation  (0) 2020.05.03
[Python] lambda  (0) 2020.05.02
[Spark] subquery  (0) 2020.05.02
댓글