Is possible to load log4j2 config.yml from config server or reaload spring boot logging configuration allways from the config server? Or get the config from a git? For example:
logging:
config: http://xxx.xx.xx.xx:3000/admin123/config-repository/src/master/log4j2.yml
You must read the file in raw mode to get the configuration from gogs. So, your url with be something like this:
http://xxx.xx.xx.75:3000/admin123/config-repository/raw/master/log4j2.xml
Yes, by specifying the destination URL with system property log4j.configurationFile
. This accepts any wellformed URL.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.