Feature #1031
Environment variable exposing port or logging path
100%
Description
Web Service Shell handlers that are not writing in Java currently have no way to dynamically determine the appropriate web service logging path on their server. Having this path would be handy for writing additional debug logs directly from the handler and not through Tomcat.
Tomcat by defaults writes to the logs/ directory in its local instance . For example, ~/server8084/logs/. This logs directory is a symlink to a directory in /wslogs on the server (i.e. ~/server8084/logs -> /wslogs/wsbeta1/server8084/).
The Web Service Shell is already exposing a number of environment variables defined in the following document:
During our meeting, we determined that it would be useful to add PORT number to this list, as well as, LOGGING_DIRECTORY which would be the absolute path to the appropriate ~/server####/logs directory for the given instance.
History
#1 Updated by Mick Van Fossen over 5 years ago
In progress.
Hoping these 2 variable names will do? PORT && TOMCATLOGDIR
#2 Updated by Nick Falco over 5 years ago
This worked perfectly Mick. Thanks for making the update. I've deployed the change in ph5wsbeta and will deploy it to production once a new web service shell release is published.
#3 Updated by Mick Van Fossen about 5 years ago
- Resolution set to Fixed
- % Done changed from 0 to 100
- Target version set to 2.4.10
- Assignee set to Mick Van Fossen
- Status changed from New to Resolved
Done. Deployed as 2.4.10