Made logging able to be done from anywhere, and still associate with a particular reaction.