dreamhead / moco

Easy Setup Stub Server
MIT License
4.36k stars 1.08k forks source link

How to log all requests/response in one log file if Moco running in standalone model? #119

Open jguyi opened 9 years ago

jguyi commented 9 years ago

HI dreamhead, I can start moco http server in terminal on mac os with "java -jar moco-runner--standalone.jar http -p 12306 -c foo.json", and visit "http://localhost:12306" successfully. so far all requests/responses will be printed on console.

Does Moco standalone server log all requests/responses in one file , instead of console? sth likes one more parameter "-l /users/xxx/moco/logs/moco.log" ?

Thanks, Austen

dreamhead commented 9 years ago

The simple solution is to redirect console to file.

karsen-clock commented 8 years ago

this function will be supported in the future version? It will be much more helpful when moco run on a remote server....