# When run tests, where to see logs?

**URL:** https://discuss.konghq.com/t/when-run-tests-where-to-see-logs/3885
**Category:** Questions
**Created:** [July 2, 2019, 1:30am UTC](https://discuss.konghq.com/t/when-run-tests-where-to-see-logs/3885 "2019-07-02T01:30:21Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![evanchaoli](https://avatars.discourse-cdn.com/v4/letter/e/5e9695/32.png) [@evanchaoli](https://discuss.konghq.com/u/evanchaoli)
#### Post date: [July 2, 2019, 1:30am UTC](https://discuss.konghq.com/t/when-run-tests-where-to-see-logs/3885/1 "2019-07-02T01:30:21Z")

</div>

I’m developing a plugin, and followed the official development guide to write some test cases. My plugin code contains some log printed via `kong.log.debug` , `kong.log.err`, etc… In the kong\_tests.conf, I have set `log_level = debug`. I also set `prefix = servroot`, I suppose to find log files under `<kong path>/servroot/logs`, but I cannot find that directory at all. Where logs go to?

---

<div class="post-metadata">

### Author: ![Mates\_Leace](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/mates_leace/32/1322_2.png) [@Mates\_Leace](https://discuss.konghq.com/u/Mates_Leace)
#### Post date: [September 10, 2019, 1:14pm UTC](https://discuss.konghq.com/t/when-run-tests-where-to-see-logs/3885/2 "2019-09-10T13:14:00Z")

</div>

Kong tests are cleaning up after each run. Comment out `helpers.stop_kong()` call to retain it (usually it is in lazy\_teardown method).
