@@ -37,79 +37,6 @@ Test your connectivity:
3737
3838 >>> aa8716be-bc74-4ffa-b838-d92e6934d224
3939
40- Logging Level
41- -------------
42-
43- Log level is controlled with the environment variable ` LOG_LEVEL` .
44-
45- Typical valid values are ` ERROR` , ` WARNING` , ` INFO` , ` DEBUG` - the default value is ` INFO` .
46-
47- - ` INFO` = Significant Events
48- - ` DEBUG` = API Requests
49-
50-
51- .. code-block:: bash
52-
53- export LOG_LEVEL=DEBUG
54- hpecp license platform-id
55-
56- >>> 2020-05-12 12:58:00,251 - ContainerPlatformClient - DEBUG - ContainerPlatformClient() created with username['admin']
57- >>> 2020-05-12 12:58:00,923 - ContainerPlatformClient - DEBUG - REQ: license/get_platform_id : get https://35.163.22.120:8080/api/v1/license
58- >>> 2020-05-12 12:58:01,571 - ContainerPlatformClient - DEBUG - RES: license/get_platform_id : get https://35.163.22.120:8080/api/v1/license : 200 {"state": "unlicensed", "_links": {"self": {"href": "/api/v1/license"}}, "uuid": "aa8716be-bc74-4ffa-b838-d92e6934d224"}
59- >>> aa8716be-bc74-4ffa-b838-d92e6934d224
60-
61- See https://docs.python.org/3.7/howto/logging.html for much more info on logging.
62-
63- Logging Configuration
64- ---------------------
65-
66- To change logging configuration, e.g. to log to a file, set the environment variable ` HPECP_LOG_CONFIG_FILE` and provide a configuration file.
67-
68- Example: ` HPECP_LOG_CONFIG_FILE=~ /.hpecp_logging.conf` :
69-
70- .. code-block:: bash
71-
72- [loggers]
73- keys=root,HPECP_CLI
74-
75- [handlers]
76- keys=consoleHandler,fileHandler
77-
78- [formatters]
79- keys=consoleFormatter,fileFormatter
80-
81- [logger_root]
82- level=INFO
83- handlers=consoleHandler,fileHandler
84-
85- [logger_HPECP_CLI]
86- level=DEBUG
87- handlers=fileHandler
88- qualname=HPECP_CLI
89- propagate=0
90-
91- [handler_consoleHandler]
92- level=INFO
93- class=StreamHandler
94- formatter=consoleFormatter
95- args=(os.devnull,)
96-
97- [handler_fileHandler]
98- level=DEBUG
99- class=FileHandler
100- formatter=fileFormatter
101- args=("/MY/LOG/FILE/LOCATION/hpecp.log","a")
102-
103- [formatter_consoleFormatter]
104- format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
105- datefmt=
106-
107- [formatter_fileFormatter]
108- format=%(asctime)s - %(name)s - %(levelname)s - %(message)s
109- datefmt=
110-
111- See https://docs.python.org/3.7/howto/logging.html for much more info on logging.
112-
11340
11441CLI Help
11542--------
0 commit comments