log4j print stacktrace

try {
   ...
} catch (Exception e) {
    log.error( "failed!", e );
}