Turn on debug logging for spray-server / spray-routing

2,009 views
Skip to first unread message

Robert Gründler

unread,
Feb 22, 2014, 10:51:56 AM2/22/14
to spray...@googlegroups.com
Hi,

i’m having troubles getting a custom CORS directive to work and therefore would like to set spray’s log level 
to DEBUG and log the response headers for each route.

I’ve tried:

- Wrap the route inside a logRequestResponse("foo", Logging.DebugLevel) {} directive
- Add a logback.xml and provide a logger <logger name="spray.routing" level="DEBUG" /> 
- Add loglevel = DEBUG to the spray.can.server block inside application.conf

But spray doesn’t pick up any of this. Nothing is being logged in regard to the response.

Has anyone a hint what i’m missing here?


thanks


robert



Mathias Doenitz

unread,
Feb 24, 2014, 6:32:37 AM2/24/14
to spray...@googlegroups.com
Robert,

have you set `akka.loglevel = DEBUG` ?

See: https://github.com/akka/akka/blob/24688cc86427821124964fad12576fe05b158d9c/akka-actor/src/main/resources/reference.conf#L27

Cheers,
Mathias

---
mat...@spray.io
http://spray.io
> --
> You received this message because you are subscribed to the Google Groups "spray.io User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/spray-user.
> To view this discussion on the web visit https://groups.google.com/d/msgid/spray-user/etPan.5308c79c.2ae8944a.11bd%40localhost.
> For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages