Spencer Logan, 68, a retired federal government employe who had worked for the Army Department and the National Institutes of Health, died Thursday at Anne Arundel General Hospital in Annapolis. He had a heart ailment.

He was coordinator of the Army Staff Management Intern Program at the Pentagon from 1960 to 1970, serving as a consultant to the Library of Congress, Howard University and D.C. Board of Education. He was awarded the Meritorious Service Award.

From 1970 to 1976, Mr. Logan was deputy equal employment opportunity officer with NIH.

A resident of Annapolis for the past 16 years, he had served as chairman of the Community Action Agency there during 1973-78. He was a member of the South County Health Program Planning Board and the Board of CETA in Annapolis.

Mr. Logan was born in Elizabeth, N.J. He graduated from Rutgers University in 1950 and did graduate work at Columbia University. He served in Europe with the Army in World War II.

He was the award-winning author of a book, "A Negro's Faith in America."

Mr. Logan had served as scoutmaster of Boy Scout Troop 226 in Annapolis and was a member of St. Phillips Episcopal Church there.

He is survived by his wife, Vivian, of Annapolis, and a brother, George II, of Elizabeth.

The family suggests that expressions of sympathy be in the form of contributions to the Spencer Logan Scholarship Fund at St. Phillips Church.