In the unlikely event that you need to configure the set directories Content Services uses to find module-specific log4j2.properties files, look at WEB-INF/classes/alfresco/logging-context.xml and find a bean definition fragment that looks something like:
<property name="extraLog4jUrls"> <list> <!-- NOTE: value entries are listed from lowest precedence to highest. --> <!-- Installed AMP modules --> <value>classpath*:alfresco/module/*/log4j2.properties</value> <!-- Enterprise extensions --> <value>classpath*:alfresco/enterprise/*-log4j2.properties</value> <!-- Other installed extensions --> <value>classpath*:alfresco/extension/*-log4j2.properties</value> <!-- private developer overrides --> <value>classpath*:alfresco/extension/dev-log4j2.properties</value> </list> </property>
You can add additional path expressions here; for more information on the classpath*: notation used here, see Spring’s PathMatchingResourcePatternResolver documentation. Generally this file will not need to be changed.