Smarter logging.