I am trying to follow this advice to debug my Spray routes, i.e. using logRequestResponse. I am using debug logging level. However, no debug messages appear on the console.
How to use Spray's logRequestResponse in tests with debug level?
111 Views Asked by Robin Green At
1
There are 1 best solutions below
Related Questions in LOG4J
- Purpose of setting debug="false" in log4j at configuration level
- log4j-api 2.20.0 causing : java.lang.NoClassDefFoundError: Could not initialize class org.apache.logging.log4j.util.PropertiesUtil
- log4j2 CronTriggeringPolicy results incorrect date in filename along with SizeBasedTriggeringPolicy
- Log4j is not writing logs into file
- How to print hudi logs in aws emr serverless application
- Is there a way to color-code Log4J2 in Windows Powershell?
- Not able to change the logging level log4j on Payara server
- How to implement log4j in IBM BPM?
- How can I change logger pattern?
- Log4J 2 - Each run has its own unique folder to store logs, and automatically delete old logs/folders
- Disable default logging in /opt/engine.log
- Native Compile java.lang.NoSuchMethodException: org.apache.logging.log4j.message.DefaultFlowMessageFactory.<init>() exception for apache-poi
- log4j 1.2.x outputs JSON format
- log4j java - dynamic logger creation in multi-thread environment
- Log4j is not accessible in eclipse
Related Questions in AKKA
- Akka-persistence, tagging past event
- how to migate a Akka cluster without stopping service
- Await.result always hangs/timeout and never returns result (Scala - Akka actors)
- Can we create akka actor from the context of shard actor?
- Optimizing CPU Utilization and Throughput in Akka / Pekko Streams on HTTP
- Handling of WebSocket Client Messages in Play Framework
- akka PubSub not working across distributed system
- Handling WebSocket Connections in Play Framework
- Propagating exception to root actor
- akka stream merge data from multiple replicas system
- akka.presistance.postgresql too many clients already
- Akka Streams: How to construct a Source of Sources with GraphDSL?
- Skip flow on failure akka streams
- How to regulate the speed between actors in java?
- Keep ordering by merging multiple slow sources in akka streams
Related Questions in SLF4J
- Purpose of setting debug="false" in log4j at configuration level
- Logs file getting created but logs are not getting written to it in springboot 3 war deployed on Tomcat 10.1.19
- Logging issues on an apache camel spring boot aplication
- How to view PMD Errors?
- Spring application packaged in jar is ignoring configured log level
- Setting root log level via command line for log4j2
- WARN StatusConsoleListener The key MDC_KEY was used in both the string and stack-valued MDC
- Log JSONObject in java without unnecessary backslashes(\)
- Lombok installed but still getting `Cannot resolve symbol 'Slf4j'`
- Logback: one file for two appenders
- How to stop slf4j printing a pointless information message at startup?
- Maven/Java/Helidon MP: Log4j2.xml <JSONLayout> causing conflict with custom annotation processor
- Slf4j is not showing the logs on my local server
- Read slf4j property values using java class
- Why is there no output in Scala + Akka Typed project?
Related Questions in SPRAY
- Converting case class object to json string using spray json
- spray.json.DeserializationException: Expected String as JsString, but got {}
- How to serialize more than 22 fields with nested object in spray?
- How to paginate external calls while deserialise a Trait with type parameters using Spray?
- Serialize to json default value of Map type as a part of case class
- IntelliJ don't recognise implicit imports as usefull
- spray.can.Http$ConnectionException: Aborted at spray.can.client.HttpHostConnectionSlot.reportDisconnection(HttpHostConnectionSlot.scala:228)
- spray json in scala: deserializing json with unknown fields without losing them
- How to select a specific horizontal line of pixels in an image to analyze on Python?
- spray cross-domain is not working cors scala
- How to call entity(as[String]) from postman scala spray
- Marshaling using spray json best case for map of maps
- How to call rest API from another server scala
- Spray client Request timeout
- Abort spray request when aborted from reactjs
Related Questions in SPRAY-TEST
- API testing akka-http REST endpoint
- Adding headers in a Spray.io Test Spec fails to send the request into the route
- ExceptionHandler doesn't work with spray test-kit?
- Scoverage and Spray Testkit
- Spray Routing Doesn't match anything
- Request was not handled with spray-testkit
- How to use Spray's logRequestResponse in tests with debug level?
- Access request in Spray testkit test
- How to get http request header info from the server side with spray RestAPI
- Scala - How spray call path goes (Debugging spray code)
- spray.io upgrade causes missing mock library in specs2
- Spray route testing with Akka TestProbe
- Injecting mock actors into a Spray route for testing
- spray-testkit === status passes whatever status is
- spray-testkit with scalatest, status doesn't work
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Firstly, the
logRequestResponsedirective takes an implicitLoggingContextparameter. LoggingContext will log to an implicit akka actor system if there is one in scope (see its Scaladoc for what it will do in other cases). There is an implicit actor system in scope in Spray Testkit, so if you are using that, that's probably the one that will be in scope. That loads from the standard locations (application.conf,reference.conf) so if you want to customise the config, you can doWherever you load the config from, it should contain at least
to make debug logging show up.
Also, check the config file of your underlying slf4j logging implementation (e.g. log4j) to see where the log statements are being written and what are the minimum log levels in that config file, because that also affects the verbosity of the logging.