Skip to content

09.0 DEBUG & Logging

Amit Gupta edited this page Dec 29, 2016 · 1 revision

Log

Stubmatic write logs to debug.log, and exceptions.log in logs directory of your project folder. If logs folder is not presnt then it write logs on root of project directory.

You can see on screen logs with '-v' or '--verbose' option.

Debug

If query parameter 'debug=true' is provided with request URL. I gives additional detail with the response: Original request, Matched mapping, Raw and refined response etc. Response status depends on how your requests gets resolved.

If 'debug=true' is provided on root url, then it gives system level information, configuration etc.

There is one more way for debugging, just run the Stubmatic with '-v' and '--debug' options. And you'll see debug logs on screen.

Clone this wiki locally