rewrote logging.ino sketch to match everything