shopizer-ecommerce / shopizer-search

Search wrapper to elasticsearch used within shopizer
19 stars 44 forks source link

This jar inside sm-search-0.0.5.jar stops sm-shop war log functionality #2

Open LeighLin opened 7 years ago

LeighLin commented 7 years ago

Hi, The log4j.xml inside this jar file stops the log functionality working at shopizer at Tomcat.

I have the following steps to get the log working. Could someone get a better solution please.

How to setup log4j logger files Step 1. Remove sm-search-0.0.5.jar log4j.xml file 1 Find sm-search-0.0.5.jar file inside {your maven repository path} .m2\repository\com\shopizer\sm-search\0.0.5 2 Change sm-search-0.0.5.jar to sm-search-0.0.5.zip file 3 Extract sm-search-0.0.5.zip file 4 Remove log4j.xml from sm-search-0.0.5 folder 5 use jar command to build jar file “..\sm-search-0.0.5>jar cvf sm-search-0.0.5.jar . “ 6 place newly built sm-search-0.0.5.jar inside .m2\repository\com\shopizer\sm-search\0.0.5 Folder

Step 2 Rename sm-core log4j.properties file 1 go to folder ..\sm-core\src\main\resources 2 rename ..\sm-core\src\main\resources\log4j.properties to something else, as long as not log4j.properties

Step 3 Change sm-shop log4j.properties file 1 go to folder .. \sm-shop\src\main\resources\ log4j.properties 2 Modify file like the following (windows) log4j.appender.debugLogfile.File=${catalina.home}/logs/shopizer-debug.log 3 rebuild shopizer by using maven

shopizer-ecommerce commented 7 years ago

Thanks, fixing it for version 2.0.6