For #21, theoretically complete logging output for KML. But it hasn't been tested