Hi, i need to debud specific issue where in my app callback i cant see request from facebook but recieving from another testing tools.
Hi,
You can use the Request Logs feature of the Jetty.
E.g.
Create jetty-env.xml file near to the uber jar on the server:
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure id="wac" class="org.eclipse.jetty.webapp.WebAppContext">
<Call name="insertHandler">
<Arg>
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
<Set name="requestLog">
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
<Set name="filename"><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Set>
<Set name="filenameDateFormat">yyyy_MM_dd</Set>
<Set name="LogTimeZone">GMT</Set>
<Set name="retainDays">90</Set>
<Set name="append">true</Set>
<Set name="LogLatency">true</Set>
</New>
</Set>
</New>
</Arg>
</Call>
</Configure>
And run the UberJar by specifying additional -jettyEnvPath argument:
java -jar app.jar -jettyEnvPath jetty-env.xml
Then request log will be created in the logs
sub-folder of the current directory.