make sure your log4j.properties gets copied to your classes directory when you build the application. You should need to use the system property to tell the application or web server where the file is so long as the location is on the classpath which WEB-INF/classes is.
On Oct 15, 8:12 pm, Andrew Ducker <[email protected]> wrote: > I have the default log4j.properties in the root of my src folder > (which is then copied to the war/WEB-INF/classes folder > automatically). > > I have this in my appengine-web.xml: > <system-properties> > <property name="java.util.logging.config.file" value="WEB-INF/ > logging.properties"/> > <property name="log4j.configuration" value="WEB-INF/classes/ > log4j.properties"/> > </system-properties> > > If I do this: > Logger logger = Logger.getRootLogger(); > logger.warn("Testing!"); > > then I get this: > log4j:WARN No appenders could be found for logger (root). > log4j:WARN Please initialize the log4j system properly. > > Any suggestions? > > Thanks, > > Andy -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
