log is now class instead of struct