Make log function use format strings.