Line numbers are compiled into the .class
files and getting them is certainly more work than not doing so.
You can get a stacktrace without throwing an exception via Thread#getStackTrace()
but that should have roughly the same cost as creating an exception (you don't need to throw and catch it).
Collecting the information can be quite expensive as mentioned in How Expensive is Thread.getStackTrace()?
But excessive logging alone can already slow down the system drastically.
Is this a performance issue in a high performance system to include the file line number?
You should test it. If it is not already a performance issue without line numbers, chances are that it is no issue with. It all depends on where and how often you log.
The documentation also mentions line numbers
Generating the line number information is not particularly fast. Thus, its use should be avoided unless execution speed is not an issue.