colby__ Posted August 30, 2016 Share Posted August 30, 2016 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); Quote Link to comment Share on other sites More sharing options...
Token Posted August 30, 2016 Share Posted August 30, 2016 1. public void printStackTrace(Exception e) { for (StackTraceElement el : e.getStackTrace()) { log(el.toString()); } } 2. You don't need access to anything in there 3 Quote Link to comment Share on other sites More sharing options...
colby__ Posted August 30, 2016 Author Share Posted August 30, 2016 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 Quote Link to comment Share on other sites More sharing options...