Modified LogRecord.__init__ to make the func parameter optional. (See SF #1569622).