With the right logging config, one can get the file and method name.
It is better to use a logging message not containing anything the config can get to.