dreamhead / moco

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

about log #249

Closed hiiloveyou closed 5 years ago

hiiloveyou commented 5 years ago

the log() can just use in API, when the log function can use in json? I need to recording the logs when I use the json method not the API method,thank you final HttpServer server = httpServer(log("path/to/log.log"));

dreamhead commented 5 years ago

Log is enable by default for standalone Moco, so you can simply redirect stdout to a file.