Anyone using ArduCopter or ArduPlane firmware and want to enable various log features through Mission Planner software can do this easily using this App to calculate the appropriate values. Simply check off the features you would like enabled and the log flag value is created. You can also enter a log value and see what flags this value represents.