Format modifier reference
File log4j2.xml defines how Guidewire PolicyCenter handles application logging. In the logging properties file, you can specify the format of information in log messages by using a conversion pattern for the characters. In using the conversion characters to define an output format, you can also add a format specification between the percent sign and the letter in the conversion pattern. The following table describes conversion patterns available with Apache log4j2 libraries. For more information on conversion patterns, refer to the following Apache documentation:
Pattern |
Description |
|---|---|
|
Specifies a minimum width of N for the output. N is an integer. If the output is less than the minimum width, the logger pads the output with spaces. Text is right-justified. For example, to specify a minimum width of 30 characters for the logging category, add |
|
Left-justifies the output within the minimum width of N characters. N is an integer. For example, to have the logging category left justified within a minimum width of 30 characters, add The default output is right-justified. |
|
Specifies a maximum width of N for the output. N is an integer. For example, to have the logging category output have a maximum width of 30 characters, add |
|
Pads with spaces to the left if output is shorter than M characters. If output is longer than N characters, then the logger truncates from the beginning. |
|
Pads with spaces to the right if output is shorter than M characters. If output is longer than N characters, then the logger truncates from the beginning. |
See also
