Overhauling logging strategy

logging.