In our webapp we’re using java.util.Logging (JULI, actually, since we deploy to Tomcat 6). Logging is configured by a logging.properties file in WEB-INF/classes, a la this.
I’d like to configure the logger so it can be autowired, something like:
@Autowired
private Logger mylogger;
I’ve searched the Spring forums, the web, and of course Stack Overflow and I can’t find how to set this up. I’d appreciate any help on this.
Thanks!
One way would be to use the Java Config style, so you’d have one bean like this:
That could then be autowired into the rest of the app as normal.