nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
67 stars 36 forks source link

[Imprv] Add logger based on flag to enable debug logs #294

Open bhati-pradeep opened 2 years ago

bhati-pradeep commented 2 years ago

Describe the request Detailed logs are very important for development as well as issue debugging. Create a logger system which can be enabled by certain flag. This logger will print all API calls in detail.

Current behaviour Currently the API which failed is only printed with limited information

Expected behaviour When debug enabled, should print detailed all API calls with all details like url, input, output, etc.