I have already gone through posts - https://answers.sap.com/questions/12758213/logs-log4j-in-hybris-6.html
and also https://help.hybris.com/6.0.0/hcd/42d818c7bac44eed9ab01757472b9dbc.html
From above page,
Was able to get logs working through hybris-log4j2.xml - with RollingFile appenders, however this is not a cleaner solution. Moreover, I had to hardcode full / relative path to logs - can't use ${HYBRIS_LOG_DIR} environment variables in XML file. Even in non-clean solution like this, any idea - how to access environment variables in log4j2.xml file ?
Cleaner solution is to define RollingFile appender in properties file. Above help hybris page has example of Console appender - "log4j2.logger.hmc.name" but not for RollingFile appender. Any help here would be very helpful.
Hybris still keeps the log4j.x.y. properties in core project.properties like platform (check performance.log), however it seems to be not working - means logs are not written/output in those files. Is it a bug/ am I missing something ?