Can you verify the log4j.xml file is being read? The JPA example here changes the logging environment so perhaps use it as an example to get started :) Grab it here: http://is.gd/AMAW
HTH Cheers, Tim On May 17, 9:57 pm, Channing Walton <[email protected]> wrote: > Hi, > I am having trouble logging anything in my app, no logs are appearing > anywhere. > > I have the following in Boot: > > DB.addLogFunc((query, len) => Log.error("The query: "+query+" > took"+len+" milliseconds")) > > LiftRules.exceptionHandler.prepend { > case (Props.RunModes.Production, Req(path, "", GetRequest), > exception) => { > Log.error("MELT DOWN!!", exception) > RedirectResponse("/") > } > } > > and a default.log4j.xml > > <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> > <appender name="console" class="org.apache.log4j.ConsoleAppender"> > <param name="Target" value="System.out"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%-5p %c{1} - %m%n"/> > </layout> > </appender> > > <root> > <priority value ="debug" /> > <appender-ref ref="console" /> > </root> > > </log4j:configuration> > > what am I missing? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" 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/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
