Add string formatting support to log