logging - Spring boot: How to pass variable from application-env.properties to another properties file? -


i have application-local.properties , application-dev.properties in spring boot following value:
logging.level.file=info

and in property file, log4j.properties, want above value based on running environment. tried use
${logging.level.file}
, fail (empty string).

how should it?

this not easy. default, spring-boot comes logback configuration. however, there possibility activate log4j too, discussed in following thread: log4j.properties in spring boot.


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -