Hi Luke,

You are right to use serve/servlet and friends rather than the
configuration-table stuff, which is just there for backwards
compatibility.

If you really want to use dispatch-log, then you'll need to use
serve/launch/wait and dispatch/servlet:
http://docs.racket-lang.org/web-server-internal/web-server.html#%28def._%28%28lib._web-server%2Fservlet-dispatch..rkt%29._dispatch%2Fservlet%29%29

However, I recommend not doing that and just stick in a call to print
before dispatch like

(define (real-dispatch req)
 (print-log req)
 (old-dispatch req))

The code that dispatch-log gives you is so trivial, you should tailor
it to what information you want:

https://github.com/racket/web-server/blob/master/web-server-lib/web-server/dispatchers/dispatch-log.rkt#L43

On Sun, Nov 13, 2016 at 2:36 PM, Luke <lukeba...@gmail.com> wrote:
> Does anyone have any tips on how to turn on transparent request logging from 
> this question above?
>
> 2) How do I insert the transparent request logger in my dispatch-rules so 
> that request info will be shown on stdout?
>
> Thanks!
>
> Luke
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Jay McCarthy
Associate Professor
PLT @ CS @ UMass Lowell
http://jeapostrophe.github.io

           "Wherefore, be not weary in well-doing,
      for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
                          - D&C 64:33

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to