# How to know where a logger is being executed?

**URL:** <https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 5, 2025, 2:43pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906 "2025-02-05T14:43:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [February 5, 2025, 2:43pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/1 "2025-02-05T14:43:45Z")

</div>

This is a stupid question.

Someone in the team placed a system.util.getLogger() somewhere and it's filling the logs with random ---- things.

Any idea on how to trace it?  
I can't seem to find it

---

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [February 5, 2025, 2:52pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/2 "2025-02-05T14:52:51Z")

</div>

`Ctrl+F` and when you see this screen:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/8/083038936d1f0e0aa590d860e10d550a41971a01.png)

Dropdown the views menu and select 'All Views'. You could deselect Named Queries and Styles as well.

Search for `system.util.getLogger(<name-of-the-logger>)`

Hopefully, it has a unique name so there are not too many results... if not maybe try searching for the message you are seeing and the log level. For example, if you are seeing ---- at the info level search for `.info('----')`

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [February 5, 2025, 2:56pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/3 "2025-02-05T14:56:03Z")

</div>

I'm sorry. I should clarify what the problem is  
Let me share a part of the log:

```python
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID1
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID1
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID4
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID4
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID4
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID4
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID1
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID1
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID4
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID4
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM6
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM8
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM6
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM6
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID1
INFO | jvm 1 | 2025/02/05 14:46:17 | ROOMID1
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2
INFO | jvm 1 | 2025/02/05 14:46:17 | IDROOM2

```

There is no log name... There is no message... Is simply the rooms ids???

I promise you I'm not beliving this.

I suposse the name is a variable that is changing? I don't know

---

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [February 5, 2025, 3:04pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/4 "2025-02-05T15:04:51Z")

</div>

I am looking at the logs in the Gateway webpage so it is a little different on my end. Do you see the same log messages in there? If so, there should be a log name with each message that is defined by the `system.util.getLogger()` function.

Also, if your team is still available, I would just blast a message out asking if anyone added logs for this room ID value.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [February 5, 2025, 3:06pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/5 "2025-02-05T15:06:21Z")

</div>

You're looking in the wrapper log. Look at the logs on the gateway, it will be there as well, and it will have the name.

Gateway-\>Status-\>Logs.

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [February 5, 2025, 3:21pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/6 "2025-02-05T15:21:04Z")

</div>

@ryan.perretta @lrose The logs doesn't appear in the webpage only in the `wrapper.log`.

> [@ryan.perretta](#):
>
> Also, if your team is still available, I would just blast a message out asking if anyone added logs for this room ID value.

My team said (the person in question) that he didn't place any loggers 😵‍💫 so... whatever...

---

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [February 5, 2025, 3:22pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/7 "2025-02-05T15:22:53Z")

</div>

Lucky me!  
I just founded.

OMG it was hidden...  
Thanks guys!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 5, 2025, 3:38pm UTC](https://forum.inductiveautomation.com/t/how-to-know-where-a-logger-is-being-executed/101906/8 "2025-02-05T15:38:12Z")

</div>

It wasn't a logger, was it?

(That kind of output in the wrapper log is what you get from `print` in gateway scope.)
