August 30, 20169 yr 1. How can I log an exception so that the entire stack trace is printed?2. Why is the logger class obfuscated and undocumented? For example:logger.log(<what the fuck goes here>, <and here>, throwable);
August 30, 20169 yr 1. public void printStackTrace(Exception e) { for (StackTraceElement el : e.getStackTrace()) { log(el.toString()); } } 2. You don't need access to anything in there
August 30, 20169 yr Author 1. public void printStackTrace(Exception e) { for (StackTraceElement el : e.getStackTrace()) { log(el.toString()); } } 2. You don't need access to anything in there Well, I do.. Now I have to write boilerplate code because they feel the need to obfuscate loggers :'( Thanks nevertheless
Create an account or sign in to comment