Skip to content

Commit

Permalink
Detailed the new Logger options
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Howell committed Jan 6, 2020
1 parent 614679e commit a74156e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,21 @@ If you want to log something in your script into this log, you can call

where l is a string. You do not need to add a "\n", it will be added automatically.

The Logger class by default only logs Requests but not Responses. If you need to see the full responses, use the following method:
The Logger class, starting in tableau_tools 5.1, has multiple options to show different levels of response.

`Logger.enable_debug_level()`b
By default, the Logger will only show the HTTP requests with URI, along the chain of nested methods used to perform the actions.

`Logger.enable_request_logging()`

will display the string version of the XML requests sent along with the HTTP requests.

`Logger.enable_response_logging()`

will display the string version of all XML responses in the logs. This is far more verbose, so is only suggested when you are encountering errors based on expectations of what should be in the response.

`Logger.enable_debug_level()`

makes the Logger indent the lines of the log, so that you can see the nesting of the actions that happen more easily. This is what the logs looked like in previous version of tableau_tools, but now it must be turned on if you want that mode.

### 0.3 TableauRestXml class
There is a class called TableauRestXml which holds static methods and properties that are useful on any Tableau REST XML request or response.
Expand Down

0 comments on commit a74156e

Please sign in to comment.