ffdc: Enhance telnet timing to handle large data amount

- Set 1: Enhance telnet
- Set 2: Add logging
- Set 3: Add CLI option log_level, default lowest level INFO

Tests:
- Regression tested

Signed-off-by: Peter D  Phan <peterp@us.ibm.com>
Change-Id: Iedbef2f26cda4377f731a5367600b0c29f73e7ac
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/collect_ffdc.py b/ffdc/collect_ffdc.py
index a4f2739..e753857 100644
--- a/ffdc/collect_ffdc.py
+++ b/ffdc/collect_ffdc.py
@@ -38,7 +38,10 @@
               show_default=True,
               help="Select protocol (SSH, SCP, REDFISH) to communicate with remote host. \
                     Default: all available.")
-def cli_ffdc(remote, username, password, ffdc_config, location, remote_type, remote_protocol):
+@click.option('--log_level', default="INFO",
+              show_default=True,
+              help="python logging level (CRITICAL, ERROR, WARNING, INFO, DEBUG)")
+def cli_ffdc(remote, username, password, ffdc_config, location, remote_type, remote_protocol, log_level):
     r"""
     Stand alone CLI to generate and collect FFDC from the selected target.
     """
@@ -47,7 +50,8 @@
 
     if input_options_ok(remote, username, password, ffdc_config, remote_type):
         thisFFDC = FFDCCollector(remote, username, password,
-                                 ffdc_config, location, remote_type, remote_protocol)
+                                 ffdc_config, location,
+                                 remote_type, remote_protocol, log_level)
         thisFFDC.collect_ffdc()
 
         if len(os.listdir(thisFFDC.ffdc_dir_path)) == 0: