public void writeLog(String msgId,String msg,String userDN){
  String[] obj={userDN};
  logger.doLog(MessageFormat.format(getLocalizedString(msgId),(Object[])obj) + " " + msg);
}

public void writeLog ( String msgId , String msg , String userDN ) { String [ ] obj = { userDN } ; logger . doLog ( MessageFormat . format ( getLocalizedString ( msgId ) , ( Object [ ] ) obj ) + " " + msg ) ; }
writes to the log file formatted message .
