In the XpoLog Environment Settings page, you
...
can define variables that can be used throughout the XpoLog system. Thus, when the value of the variable changes, you only have to change it in the Environment Settings page, instead of every place that it apperar in the XpoLog system.
...
For example, you can add an environment variable that
...
contains the path to a logs folder,
...
so that for every log that you add, you only need to put the environment variable’s name in
...
the
...
Path field, and not the full path. This way, if the path to the log folder changes, you only need to
...
edit the environment variable’s value
...
in one place - on the XpoLog Environment Settings page, thus ensuring that all the
...
logs remain functional.
...
For example, if the variable’s name
...
myServerLogsPath
, the is myServerLogsPath, the value to be used in order to access it is ${
myServerLogsPath}
You can add variables that can be used across all the system. For example a path to server, or a log name - set the variable name and value in a central location and when something is changed you will be required to edit it only here.
Example:
...
.
If the logs are located under the directory "/opt/logs/" then you can save an environment variable for that location using the name logs.home for example.
When you add logs to XpoLog, you can then use ${logs.home} in the log paths instead of the actual path.
If the logs directory will be transferred then you can just update the environment variable with the new path, but all the logs which use ${logs.home} will automatically pick the updated value.
To add an environment variable:
- In the XpoLog Manager menu, select Settings > Environment Variables.
The XpoLog environment settings page opens. - Click add new environment variable.
- In the name and value fields that appear, type the name of the environment variable and its value, and then click save.