To write your logging information into a file, you would need to use a command org.apache.log4j.FileAppender