Made easier API for registering log callbacks. Satisfies #29.