Say you catch an exception and get the following on the standard output (like, say, the console) if you do a e.printStackTrace() :
java.io.FileNotFo
Just because it happened to me and can be useful. If you do this
try { ... } catch (Exception e) { log.error( "failed! {}", e ); }
you will get the header of the exception and not the whole stacktrace. Because the logger will think that you are passing a String. Do it without {} as skaffman said
{}