How to log diagnostic information using the error module.

... just a small note to point people at in the future.