public void logError(final Level level,final String message,final Error e){
  try {
    Logger errors=LoggingFactory.getLogger(LoggingFactory.NAME_ERROR_LOGGER);
    errors.logThrowable(level,message,e);
  }
 catch (  LoggingException ex) {
    ex.printStackTrace();
  }
  if (logLevel.intValue() > level.intValue()) {
    return;
  }
  logThrowable(level,message,e);
}

public void logError ( final Level level , final String message , final Error e ) { try { Logger errors = LoggingFactory . getLogger ( LoggingFactory . NAME_ERROR_LOGGER ) ; errors . logThrowable ( level , message , e ) ; } catch ( LoggingException ex ) { ex . printStackTrace ( ) ; } if ( logLevel . intValue ( ) > level . intValue ( ) ) { return ; } logThrowable ( level , message , e ) ; }
the occurred error with the related log level and message has to be given to this method . this method will verify if the message should be logged or not .
