Sync logging.cs with Adapteve, slight changes to allow logging to file earlier in the startup / login process

tested as working w latest Adapteve