How to exclude log listen key in spring boot

  • I found a log line related to the listen key. What would happen if a hacker manages to read the log file on my server and steal that listen key?
  • I’ve been trying to change the log level and remove it from my application, but I couldn’t.
  • Suppose I can change the log level, but if a hacker inserts another logback file or another configuration file, then what? I think logging sensitive information like this could lead to a security vulnerability.
  • Thanks

Sorry, I forgot I still need an api key and secret to connect websocket