public void log(String question,String intent,String confidence,String entity,String convoOutput,String convoId,String retrieveAndRankOutput) throws Exception {
  logger.info(Messages.getString("Logging.ENTRY_INTO_DB"));
  Database db=client.database("conversation_enhanced_db",true);
  db.save(new Document(question,intent,confidence,entity,convoOutput,convoId,retrieveAndRankOutput));
}

public void log ( String question , String intent , String confidence , String entity , String convoOutput , String convoId , String retrieveAndRankOutput ) throws Exception { logger . info ( Messages . getString ( "Logging.ENTRY_INTO_DB" ) ) ; Database db = client . database ( "conversation_enhanced_db" , true ) ; db . save ( new Document ( question , intent , confidence , entity , convoOutput , convoId , retrieveAndRankOutput ) ) ; }
this methods connects to the database and saves the given document to the cloudant db
