I'm trying to use logRequestResponse in the routing for a REST service I've built but nothing is being logged. Any clues as to what pieces need to be in place to enable it?
Here is what I have:
My routing source file has this:
trait MyService extends HttpService {
val route: Route = logRequestResponse("3") {
pathPrefix("api" / PathElement) { licensee =>
My application.conf has this:
event-handlers = ["akka.event.slf4j.Slf4jEventHandler"]
My logback.xml file, which is being read at startup has this:
<logger name="spray" level="DEBUG" />
I am getting logging output from logging calls in my own code via Akka's logging adapter.
But I am not getting any spray-routing related logging.
What could be missing?