How to know where a logger is being executed?

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

Ctrl+F and when you see this screen:

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('----')

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

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

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.

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.

1 Like

@rperretta @lrose The logs doesn't appear in the webpage only in the wrapper.log.

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

Lucky me!
I just founded.

OMG it was hidden...
Thanks guys!

1 Like

It wasn't a logger, was it?

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

2 Likes