You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Only *Sandbox credentials* should be used for testing, as the test case will commit/adjust/void dummy transactions on the account to verify functionalities.
172
172
173
+
### Logging
174
+
175
+
Logging is implemented using standard Python logging framework.
176
+
177
+
1. All relevant methods from `AvataxClient` class are decorated with `ava_log` decorator.(This is achieved using another decorator at class level, `decorate_all_methods`)
178
+
2.`ava_log` decorator collects relevant request data, response data useful for instrumentation and logs error data in case of exception.
179
+
3.`AvataxClient` constructor is modified with optional parameter, `is_log_req_resp_allowed` (defaulted to False), to control if log entry should contain request and response objects.
180
+
4. SDK Consumer code can also set logger property of `AvataxClient` to use already configured logger instance. e.g.
181
+
```
182
+
from logging import config
183
+
184
+
# configure logging using file config or dictConfig
185
+
# or by setting basicConfig (this is default in case no logger is set)
0 commit comments