Reputation: 130
My tomcat7/shindig instance is completely ignoring the config in logging.properties file. I have the following specified ./WEB-INF/classes/logging.properties:
handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler
.handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler
.level=ALL
java.util.logging.ConsoleHandler.level=ALL
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.FileHandler.prefix=shindig-errors.log
java.util.logging.FileHandler.directory=/var/log/tomcat7/
However no files appear /var/log/tomcat7/ and logs are not appended. What am I missing?
I know using log4j is 'recommended' approach but I'm trying to get visibility on shindig classes that log using java.util.logging.
Upvotes: 0
Views: 526
Reputation: 11045
Looks like you are mixing java.util.logging.FileHandler properties with org.apache.juli.FileHandler properties. Change the package name of the FileHandler in your logging.properties file.
Upvotes: 1