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