zengkid / SmartTomcat

The Tomcat plugin for Intellij IDEA
Apache License 2.0
126 stars 55 forks source link

Enable catalina/localhost log by default. #63

Closed littleorca closed 3 years ago

littleorca commented 3 years ago

Version 3.8.2 with apache tomcat 8.5.42 lacks of catalina.out and localhost.log by default. As I compared between processes started by smart tomcat plugin and apache tomcat itself, I found that smart tomcat plugin lacks of the following options:

-Dcatalina.base=<path to per module base directory> -Djava.util.logging.config.file=${catalina.base}/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

It will emit catalina log and localhost log normally as I tested by adding the above lines to the VM options.

However, I think it better to be added by the plugin by default.