I am trying to make per-deployment logging work. I have war archive with logging.properties
in WEB-INF/
with contents:
ru.home.level=FINEST
And in servlet I do:
protected Logger log = Logger.getLogger("ru.home.Something");
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
log.log(Level.FINEST, "Hello");
resp.getWriter().write("<b>tralalala</b>");
log.log(Level.FINEST, "Bye");
}
According to WildFly logging configuration documentation during the deployment it should scan and find my properties file in the appropriate place. But seems like it doesnt scan at all. What am I doing wrong? (https://docs.jboss.org/author/display/WFLY9/Logging+Configuration#LoggingConfiguration-PerdeploymentLogging) Also:
/subsystem=logging:read-attribute(name=use-deployment-logging-config)
returns:
{
"outcome" => "success",
"result" => true
}