title: How can I find a mysterious message being printed?
body: <p>Okay, so I have a very large project in Java that I have been working on for years (a game, if you must know).</p>
  
  <p>Unfortunately, a mysterious message has started being printed. No matter the lengths of my searching, I cannot pinpoint the location of the message.</p>
  
  <p>I know that you can override the println method, and I was curious if it was possible to have some sort of debugging info attached to the message being printed? Like the line or file it was printed from perhaps? I tried searching Google for this, but it is simply too detailed of a problem that I cannot find an answer.</p>
  
  <p>Even worse, the message is very ambiguous. It is simply "-1".</p>
  
  <p>Atleast I know now to use a proper logger instead of simply println().</p>