In the XpoLog Environment Settings page, you can define variables that can be used throughout the XpoLog system. Thus Then, 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 appears 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 is myServerLogsPath, the value to be used in order to access it is ${myServerLogsPath}. If 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 $type ${logs.home} in the log paths path, instead of the actual path.
If the logs directory will be transferred then you can just is transferred elsewhere, you can simply update the environment variable with the new path, but all . All the logs which use $use ${logs.home} will automatically pick have 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.
...