hello Ceki, thanxs for your help I'm using maven-jetty-plugin 6.1.1 (the one used in logback-demo) These logs are produced when logback find the logback-access.xml :
14:04:08,192 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - Ignoring debug attribute. 14:04:08,192 |-INFO in ch.qos.logback.core.joran.action.StatusListenerAction - Adding status listener of type [ch.qos.logback.core.status.OnConsoleStatusListener] 14:04:08,192 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 14:04:08,208 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 14:04:08,208 |-ERROR in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Could not find an appropriate class for property [encoder] 14:04:08,208 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@7:16 - no applicable action for [pattern], current pattern is [[configuration][appender][encoder][pattern]] 14:04:08,208 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Encoder has not been set. Cannot invoke its init method. 14:04:08,208 |-ERROR in ch.qos.logback.core.ConsoleAppender[STDOUT] - No encoder set for the appender named "STDOUT". 14:04:08,208 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to ch.qos.logback.access.jetty.RequestLogImpl@29d75 14:04:08,208 |-INFO in ch.qos.logback.access.joran.action.ConfigurationAction - End of configuration. 14:04:08,208 |-INFO in ch.qos.logback.access.jetty.RequestLogImpl@29d75 - RequestLog added to RequestLogRegistry with name: LogbackRequestLog and when i access http://localhost:8080/<my-app>/lbAccessStatus : 14:09:40,232 |-WARN in ch.qos.logback.core.ConsoleAppender[STDOUT] - Attempted to append to non started appender [STDOUT]. if i remove the logback-acess.xml (it should use a default config right ?), there's no more warn/error logs but the the same error message "Could not find status manager" when accessing to servlet's page. Max On Mon, Jan 31, 2011 at 12:52 PM, Ceki Gulcu <[email protected]> wrote: > > Hello Max, > > Are you seeing any status messages generated by logback-access on the > console? > > Have you installed logback's RequestLog implementation? In other words, > have you added the following in your jetty.xml file: > > <Ref id="requestLog"> > <Set name="requestLog"> > <New id="requestLogImpl" > class="ch.qos.logback.access.jetty.RequestLogImpl"> > </New> > </Set> > </Ref> > > BTW, which version of Jetty are you using? > > Cheers, > > > On 31.01.2011 11:37, Maxime Carpentier wrote: > >> Hi, >> I've tried to follow online tutorial http://logback.qos.ch/access.html >> to view status message on|ViewStatusMessagesServlet, but it keep saying >> "|Could not find status manager" on the servlet|'s page...am i missing >> something ? >> >> i'm using logback 0.9.26, with maven/jetty plugin (exactly like >> logback-demo) >> >> my config : >> web-inf.xml : >> <servlet> >> <servlet-name>AccessViewStatusMessages</servlet-name> >> >> <servlet-class>ch.qos.logback.access.ViewStatusMessagesServlet</servlet-class> >> </servlet> >> >> <servlet-mapping> >> <servlet-name>AccessViewStatusMessages</servlet-name> >> <url-pattern>/lbAccessStatus</url-pattern> >> </servlet-mapping> >> >> logback-acess.xml : >> <configuration> >> <!-- always a good activate OnConsoleStatusListener --> >> <statusListener >> class="ch.qos.logback.core.status.OnConsoleStatusListener" /> >> >> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> >> <encoder> >> <pattern>%h %l %u %user %date "%r" %s %b</pattern> >> </encoder> >> </appender> >> >> <appender-ref ref="STDOUT" /> >> </configuration> >> >> >> Thanxs for your help, >> Max >> | >> >> > _______________________________________________ > Logback-user mailing list > [email protected] > http://qos.ch/mailman/listinfo/logback-user >
_______________________________________________ Logback-user mailing list [email protected] http://qos.ch/mailman/listinfo/logback-user
