fixed logs being set with the wrong permissions by subclassing the handler and changing umask when opening logfile.