In the XpoLog Environment Settings page, you can specify variables that can be used throughout the XpoLog system. For
example, you can add an environment variable that points to a logs folder, and
in every log you add you only need to put the environment variable’s name in
the path, and not the full path. This way, if the path changes, you only need to
edit the environment variable’s value and all the logs will remain functional.
If the variable’s name 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.