[logback-user] Problem with ViewStatusMessagesServlet

Ceki Gulcu ceki at qos.ch
Mon Jan 31 12:52:56 CET 2011


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
> |
>



More information about the Logback-user mailing list