protected void print ( final Level level , final String message , final Throwable throwable ) { if ( ! isEnabled ( level ) ) { return ; } StringBuilder msg = new StringBuilder ( ) . append ( slf . getElapsedTime ( ) ) . append ( ' ' ) . append ( ' ' ) . append ( level ) . append ( ' ' ) . append ( ' ' ) . append ( getCallerClass ( ) ) . append ( ' ' ) . append ( ' ' ) . append ( ' ' ) . append ( message ) ; System . out . println ( msg . toString ( ) ) ; if ( throwable != null ) { throwable . printStackTrace ( System . out ) ; } }
Prints error message if level is enabled .