Moved the processing from log.c to here; since it's Pantheon specific, seems like a more reasonable place to do it, leaving logging more generic