Logging of exceptions; line* test helpers