-
Notifications
You must be signed in to change notification settings - Fork 604
Dev log user #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev log user #263
Changes from all commits
f31e171
58b2142
d192e3f
bc0aa69
2e12171
0e51d5e
fecba8a
9162c79
567903f
0f3abeb
a449df7
f4a7c5c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,6 @@ tabpy-server/tabpy_server/staging | |
|
||
# VS Code | ||
*.code-workspace | ||
.vscode/ | ||
|
||
# etc | ||
setup.bat | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"git.enabled": true, | ||
"files.exclude": { | ||
"**/__pycache__": true, | ||
"**/.pytest_cache": true | ||
}, | ||
"python.linting.pylintEnabled": false, | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.enabled": true | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# TabPy Server Configuration Instructions | ||
|
||
<!-- markdownlint-disable MD004 --> | ||
|
||
<!-- toc --> | ||
|
||
- [Configuring HTTP vs HTTPS](#configuring-http-vs-https) | ||
|
@@ -10,8 +11,11 @@ | |
* [Adding an Account](#adding-an-account) | ||
* [Updating an Account](#updating-an-account) | ||
* [Deleting an Account](#deleting-an-account) | ||
- [Logging](#logging) | ||
* [Request Context Logging](#request-context-logging) | ||
|
||
<!-- tocstop --> | ||
|
||
<!-- markdownlint-enable MD004 --> | ||
|
||
Default settings for TabPy may be viewed in the | ||
|
@@ -115,3 +119,39 @@ will be generated and displayed in the command line. | |
|
||
To delete an account open password file in any text editor and delete the | ||
line with the user name. | ||
|
||
## Logging | ||
|
||
Logging for TabPy is implemented with standart Python logger and can be configured | ||
as explained in Python documentation at | ||
[Logging Configuration page](https://docs.python.org/3.6/library/logging.config.html). | ||
|
||
Default config proveded with TabPy is | ||
[`tabpy-server/tabpy_server/common/default.conf`](tabpy-server/tabpy_server/common/default.conf) | ||
and has configuration for console and file loggers. With changing the config | ||
user can modify log level, format of the logges messages and add or remove | ||
loggers. | ||
|
||
### Request Context Logging | ||
|
||
For extended logging (e.g. for auditing purposes) additional logging can be turned | ||
on with setting `TABPY_LOG_DETAILS` configuration file parameter to `true`. | ||
|
||
With the feature on additional information is logged for HTTP requests: caller ip, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would be useful to say specifically that the client is Tableau/Tableau Server to make users aware that this will log usernames from Tableau Server. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I'll update the text together with the example below. |
||
URL, client infomation (Tableau Desktop\Server), Tableau user name (for Tableau Server) | ||
and TabPy user name as shown in the example below: | ||
|
||
<!-- markdownlint-disable MD040 --> | ||
``` | ||
2019-04-17,15:20:37 [INFO] (evaluation_plane_handler.py:evaluation_plane_handler:86): | ||
::1 calls POST http://localhost:9004/evaluate, | ||
Client: Tableau Server 2019.2, | ||
Tableau user: ogolovatyi, | ||
TabPy user: user1 | ||
function to evaluate=def _user_script(tabpy, _arg1, _arg2): | ||
res = [] | ||
for i in range(len(_arg1)): | ||
res.append(_arg1[i] * _arg2[i]) | ||
return res | ||
``` | ||
<!-- markdownlint-enable MD040 --> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class SettingsParameters: | ||
''' | ||
Application (TabPyApp) settings names | ||
''' | ||
TransferProtocol = 'transfer_protocol' | ||
Port = 'port' | ||
ServerVersion = 'server_version' | ||
UploadDir = 'upload_dir' | ||
CertificateFile = 'certificate_file' | ||
KeyFile = 'key_file' | ||
StateFilePath = 'state_file_path' | ||
ApiVersions = 'versions' | ||
johng42 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
LogRequestContext = 'log_request_context' | ||
StaticPath = 'static_path' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would maybe say "additional logging details"