view src/luan/host/Log4j.java @ 1325:28c1fc6d9d29

website - make docs html
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 07 Feb 2019 23:00:20 -0700
parents 707a5d874f3e
children
line wrap: on
line source

package luan.host;

import org.apache.log4j.Logger;
import org.apache.log4j.Level;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.ConsoleAppender;


public final class Log4j {

	public static void initForConsole() {
		Logger.getRootLogger().setLevel(Level.INFO);
		PatternLayout layout = new PatternLayout("%d %-5p %c - %m%n");
		ConsoleAppender appender = new ConsoleAppender(layout,"System.err");
		Logger.getRootLogger().addAppender(appender);
	}

}