Closed #40: logging