adding the function of out-putting to a file by using log4j2