lf_cisco_power.py : ability to pass log file name so subprocess (mainly

cisco_wifi_ctl.py,  or pass stdout if a log file is not to be created.
lf_cisco_snp.py : added also the ability to user stdout if log file not
passed in ,  will update the logging for lf_cisco_snp.py - in another commit
This commit is contained in:
Chuck SmileyRekiere
2020-11-13 12:36:54 -07:00
parent 37d8374a0e
commit 5099f92f7a
2 changed files with 51 additions and 45 deletions

View File

@@ -1480,6 +1480,9 @@ TODO: Radio descriptions in realm , the 1. refers to the chassi hopefully corres
if args.log:
outfile_log = "{}_{}_output_log.log".format(args.outfile,current_time)
print("output file log: {}".format(outfile_log))
else:
outfile_log = "stdout"
print("output file log: {}".format(outfile_log))
console_handler = logging.StreamHandler()
formatter = logging.Formatter(FORMAT)