I have a web app I've created in SSTS as a maven project.
In src/java/resources I have a logging.properties file with contents like this:
Unfortunately I find that anything with a log level lower than INFO is not being displayed when I run it from within SSTS. However if I package it as a war and deploy it to Tomcat, it does show the logs.Code:handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ org.apache.juli.FileHandler.level = INFO org.apache.juli.FileHandler.directory = ${catalina.base}/logs org.apache.juli.FileHandler.prefix = spinfw com.abmyers.level=ALL java.util.logging.ConsoleHandler.level = ALL java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
So it seems seems there is some reason that the logging.properties doesn't work when I'm running from SSTS. Can anyone else reproduce this behaviour, and/or have a solution?
The code I'm using is at https://bitbucket.org/am2605/spinfw
Many thanks,
Andrew.
Many thanks,
Andrew.


Reply With Quote