You're correct -- Dropwizard's request-logging functionality is handled by
Jetty and is thus out of band of the `ScalyrAppender` instance that you're
creating in application code.

If you create a custom `io.dropwizard.logging.AppenderFactory
<http://www.dropwizard.io/0.9.2/dropwizard-logging/apidocs/io/dropwizard/logging/AppenderFactory.html>`
class for `ScalyrAppender`, perhaps you could take care of all of this log
configuration in your config file rather than in a Bundle. Someone please
correct me if I'm wrong, but based on my reading of the relevant code in
dropwizard-core and dropwizard-request-logging, there isn't a
straightforward way for applications to configure request logging other
than via the config file
<http://www.dropwizard.io/0.9.2/docs/manual/configuration.html#request-log>.

On Wed, Jul 6, 2016 at 11:29 AM, aakash via dropwizard-user <
[email protected]> wrote:

> I am pushing my logs via log appender to Scalyr.com logging service.
>
> But request access logs and request exceptions are not pushed to the
> logging service.
>
> I believe they are coming from jetty's log. How do I push these entries to
> my log appender ?
>
> This is how I am integrating the log appender:
>
> https://gist.github.com/aakashbapna/23b40959857b012b714a5a007d0f7987
>
> [Logged]
>
> INFO  [2016-07-06 18:09:29,322] org.eclipse.jetty.server.Server:
> jetty-9.2.z-SNAPSHOT
>
> [Not Logged]
>
> ::1 - - [06/Jul/2016:18:10:17 +0000] "GET /checkout HTTP/1.1" 200 - "-"
> "RestSharp 104.1.0.0" 891
>
>
> Am I missing anything?
>
> --
> You received this message because you are subscribed to the Google Groups
> "dropwizard-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Evan Meagher

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to