I have a Java print stack trace function that I use for debugging.
private static void printError(String message, Significance severityLevel, int stackTraceStart) {
final String thread_name = Thread.currentThread().getName();
final String location_of_print_statement = Thread.currentThread().getStackTrace()[stackTraceStart].toString();
Package_Private.printLineToReadout("\n" + "Thread \"" + thread_name + "\": "
+ location_of_print_statement + "\n" + message, ReadoutCondition.BAD, severityLevel);
}
Problem is that it only prints "modules.ShopModule.configure(ShopModule.scala:8)"
I want it to print the entire path to that file, not the relative path.