How to get the jetty server instance or log the jetty requests in a file?
664 views
Skip to first unread message
Dheerendra Rathor
unread,
May 22, 2014, 4:31:13 AM5/22/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dropwiz...@googlegroups.com
Is there any way to get the jetty server instance so that I can handle all the jetty requests and can log them manually in a file? or there is any other method to log requests to file in dropwizard?
Jochen Schalanda
unread,
May 22, 2014, 4:51:01 AM5/22/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dropwiz...@googlegroups.com
Hi,
as of Dropwizard 0.7.0 you can simply attach a File appender [1,2] to
the Jetty request log [3]: