@Override
    public String formatMessage(LogRecord logRecord) {
        if (System.getSecurityManager() == null) {
            return formatMessage(logRecord, logRecord.getParameters(), true);
        } else {
            final LogRecord f_logRecord = logRecord;
            return AccessController.doPrivileged(new PrivilegedAction<String>() {
                @Override
                public String run() {
                    return formatMessage(f_logRecord, f_logRecord.getParameters(), true);
                }
            });
        }

    }
@ Override public String formatMessage ( LogRecord logRecord ) { if ( System . getSecurityManager ( ) == null ) { return formatMessage ( logRecord , logRecord . getParameters ( ) , true ) ; } else { final LogRecord f_logRecord = logRecord ; return AccessController . doPrivileged ( new PrivilegedAction < String > ( ) { @ Override public String run ( ) { return formatMessage ( f_logRecord , f_logRecord . getParameters ( ) , true ) ; } } ) ; } }
{@inheritDoc} <br />
We override this method because in some JVMs, it is synchronized (why on earth?!?!).