Pull log line pattern out of let statement

Only have the log line pattern be declared once,
instead of every time for the method call.

Fixes #4