Make sure the Logger file you are using should be imported from log4j library rather than liferay's one.