The Set Log Level screen
Use the Server Tools Set Log Level screen to set a specific logging level for the different logging categories. The logging levels that you specify in the Set Log Level screen persist until you change them or restart the server.
The Logger drop-down presents the following types of logging categories:
|
Type |
Description |
|---|---|
|
Guidewire default |
Guidewire provides a number of default PolicyCenter logging categories. You can also see the list of Guidewire logging categories by running the system_tools command from a command prompt and adding the -loggercats option. |
|
Guidewire internal classes |
Guidewire provides a number of logging categories that apply to
Guidewire internal classes. These logging categories start with
|
|
Third-party software |
Guidewire applications integrate with certain types of third-party
software. The manufactures of this software provide their own
logging categories. These logging categories start with
|
Making logging level changes permanent
To make your log level settings permanent, you must edit file log4j2.xml and set the log level there. Access this file from the Project window in Studio by navigating to , and then opening log4j2.xml.
In the default PolicyCenter configuration, the log4j2.xml file does not contain a unique logger definition for each Guidewire logger.
Setting logging levels through system tools
system_tools -updatelogginglevel logger level
The PolicyCenter administration command prompt tools all require that you enter the password of an administrative user for the tool to work. The use of a user name is optional.
To use this command, you must supply the name of a specific logger category (logger) and the new logging level (level) for that logger. Use the system_tools -loggercats command option to see a list of valid PolicyCenter logger categories.
You must refresh the Server Tools Set Log Level screen after using the system_tools command to see your changes reflected in that screen.
See also
