There is a servlet. But an error occurs when reading the properties file. In the usual JavaApp, everything works. What could be the problem?
@Override public void init (ServletConfig config) throws ServletException { super.init(config); try { // тут ошибка LogManager.getLogManager().readConfiguration( MyServlet.class.getResourceAsStream("D:\\...\\logging.properties")); } catch (IOException ex) { Logger.getLogger(MyServlet.class.getName()).log(Level.SEVERE, null, ex); } System.err.println("Could not setup logger configuration: " + e.toString()); } log = Logger.getLogger(MyServlet.class.getName()); } Properties file:
handlers= java.util.logging.FileHandler java.util.logging.FileHandler.level =ALL java.util.logging.FileHandler.pattern = D:/.../log.txt java.util.logging.FileHandler.limit = 1000000 java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter I did not figure it out, put log4j