I need some help with logging for Java Apps in Azure:
1) Using Azure as PaaS, I've created an API APP configured to use Java8 + Tomcat8. And I'm trying to use log4j2 for getting application logging apart from the Tomcat logs (in a separated file). For what I know, I've permissions to write anywhere inside D:\home. So, I'll try to write to "d:\home\Logfiles\Application\". So, I created a WebApplication with some log4j2 that runs just fine in my local tomcat. But when running the same application (with the correct log file path) in Azure I don't see any logs. I even tried to fill /site/wwwroot/web.config as described in https://azure.microsoft.com/en-us/documentation/articles/web-sites-java-custom-upload/ no logs this way also. How can I configure Java applicational logging in a separated file (without changing the tomcat logging (JULI logger) to log4j)?
2) Looking at the tomcat logs, I realized the Start/Stop/Restart of the WebApp doesn't mean to Start/Stop/Restart of the tomcat, so we don't have any control of it? Does someone knows what's happening behind when we do a Start/Stop/Restart in the azure portal for a webcontainer based application?
3) What's the best way to centralize Java Logging of several web applications? Using JDBCAppender or JPAAppender from log4j2?
Thanks in advance