2 Minutes To Code (β Version)

Log4j - 2 minute tutorial

Console Logging : How to configure log4j to write logs on console programmatically

		package com.techfundaes.log4j;

		import org.apache.log4j.Logger;

		public class BasicUse
		{
			static 	Logger logger = Logger.getLogger(BasicUse.class);
			public static void main(String[] args)
			{
				while(true)
					logger.info("Written.");
				
			}
		}