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
Post a Comment