Adding formatting of log messages using kwargs.

Not currently working. WIP.