I have the following logging.properties file which is located in WEB-INF/classes
handlers = 1myapp.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
.handlers = 1myapp.org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
1myapp.org.apache.juli.FileHandler.level = FINE
1myapp.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
1myapp.org.apache.juli.FileHandler.prefix = myapp.
1myapp.org.apache.juli.FileHandler.formatter = java.util.logging.SimpleFormatter
1myapp.java.util.logging.SimpleFormatter.format="%5$s%n"
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format="%5$s%n"
The log file "myapp.date.log" is created correctly. So, the configurations seems to work so far. The entries in the log should contain only the log message. But instead the default format is used.
What´s wrong? It´s very hard to find a realy good tutorial about configuring the logging.