Reloading the logging configuration
It is possible to make an immediate change in the configuration of PolicyCenter logging without having to first redeploy the PolicyCenter application server. You can do this in several different ways:
- Use a system_tools command option
- Use a SystemToolsAPI web service method
Either approach reloads the current logging configuration from the log4j2.xml file.
Reload the logging configuration by using system tools
Procedure
- Update file log4j2.xml with your logging configuration changes.
- Ensure that the PolicyCenter server is running.
-
Open a command prompt in the following location:
- admin/bin
-
Enter the following at the command prompt:
system_tools -user user -password password -reloadloggingconfig
You must supply the user name (user) and password (password) for a user with administrative privileges.
Reload the logging configuration by using web services
Procedure
- Update file log4j2.xml with your logging configuration changes.
- Ensure that the PolicyCenter server is running.
-
Call the following method on the SystemToolsAPI web
service:
- SystemToolsAPI.reloadLoggingConfig
