Allow log and error to be specified as options.
Merge pull request #9 from pprince/log-and-error-options

Allow log and error functions to be specified as options.