+ #handle -W
+ logHome = f"{args.logging_destination}dailylogrun{datetime.datetime.today().strftime('%Y%m%d')}"
+
+ #handle -L
+ loglevel = args.logging_level
+ if loglevel == 'debug':
+ logging.basicConfig(filename=logHome, filemode='a', level=logging.DEBUG)
+ elif loglevel == 'info':
+ logging.basicConfig(filename=logHome, filemode='a', level=logging.INFO)
+ elif loglevel == 'warning':
+ logging.basicConfig(filename=logHome, filemode='a', level=logging.WARNING)
+ elif loglevel == 'error':
+ logging.basicConfig(filename=logHome, filemode='a', level=logging.ERROR)
+ elif loglevel == 'critical':
+ logging.basicConfig(filename=logHome, filemode='a', level=logging.CRITICAL)
+ else:
+ print("Choose a valid log level: debug, info, warning, error, or critical")
+ exit
+