this is example for use apache log4j in code.