Add logging

Add logging(log4j)