# Where i can find log of my custom plugin?

**URL:** https://discuss.konghq.com/t/where-i-can-find-log-of-my-custom-plugin/12120
**Category:** Questions
**Created:** [November 22, 2023, 7:17am UTC](https://discuss.konghq.com/t/where-i-can-find-log-of-my-custom-plugin/12120 "2023-11-22T07:17:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Vu\_Le\_Minh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/vu_le_minh/32/4220_2.png) [@Vu\_Le\_Minh](https://discuss.konghq.com/u/Vu_Le_Minh)
#### Post date: [November 22, 2023, 7:17am UTC](https://discuss.konghq.com/t/where-i-can-find-log-of-my-custom-plugin/12120/1 "2023-11-22T07:17:10Z")

</div>

Hi everyone!  
I just start to create my own custom plugin with Lua. I implement Kong custom plugin template to learn. Next i pack it with LuaRocks and run in Kong API Gateway successfully.  
But in log section of handler.lua below, i can’t find anywhere my log when using custom plugin.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/e/efefcc79dc6e03fb29540b4f6ecab466cddd1aeb.png)

Anyone know what happen?  
Thanks

---

<div class="post-metadata">

### Author: ![Vu\_Le\_Minh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/vu_le_minh/32/4220_2.png) [@Vu\_Le\_Minh](https://discuss.konghq.com/u/Vu_Le_Minh)
#### Post date: [November 22, 2023, 7:50am UTC](https://discuss.konghq.com/t/where-i-can-find-log-of-my-custom-plugin/12120/2 "2023-11-22T07:50:09Z")

</div>

Solved, Tks everyone!

---

<div class="post-metadata">

### Author: ![Gaurav\_Gupta](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/gaurav_gupta/32/4271_2.png) [@Gaurav\_Gupta](https://discuss.konghq.com/u/Gaurav_Gupta)
#### Post date: [December 7, 2023, 11:17am UTC](https://discuss.konghq.com/t/where-i-can-find-log-of-my-custom-plugin/12120/3 "2023-12-07T11:17:30Z")

</div>

Where did you find those logs?

---

<div class="post-metadata">

### Author: ![fsanchez](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/fsanchez/32/4257_2.png) [@fsanchez](https://discuss.konghq.com/u/fsanchez)
#### Post date: [December 8, 2023, 4:59pm UTC](https://discuss.konghq.com/t/where-i-can-find-log-of-my-custom-plugin/12120/4 "2023-12-08T16:59:50Z")

</div>

The way it works for me, i’m running Kong in a docker container locally, and on K8 in production. The log line is produced along with all the other logs from kong.  
The important piece to remember is to set the log\_level (KONG\_LOG\_LEVEL) to the appropriate value. For dev I have notice, and for production I have warn.  
In my dev box, my plugin is called glauth, and the logline looks like this

```auto
2023-12-08 08:58:04 2023/12/08 16:58:04 [notice] 12066#0: *17596 [kong] access.lua:104 [glauth] Extracted user: ...

```
