Initialize logging earlier upon startup