Example 3 shows how to override a property from the logfilter.properties
file.
Procedure
- Check
servers.properties
to
find the PROPERTY_FILE_NAME_PREFIX. In server.properties
,
the line for logfilter.properties says: logfilter=<INSTALL_DIR>/properties/logfilter.properties
logfilter
is the PROPERTY_FILE_NAME_PREFIX.
- The logfilter.properties file contains a
property called default.layout.filterset. For an override entry, the
PROPERTY_NAME value would be default.layout.filterset. So far, the
entry for
customer_overrides.properties
would be:
logfilter.default.layout.filterset
- The default value for default.layout.filterset
is common-filter. To override this default, you would add the new
value (in this example, sensitivefilter ) to the entry. The completed
override entry for the example is shown below.
logfilter.default.layout.filterset=sensitivefilter