FileDocCategorySizeDatePackage
LGLogger2Log4j.javaAPI DocAzureus 3.0.3.41240Fri Dec 02 19:03:56 GMT 2005org.gudy.azureus2.ui.common.util

LGLogger2Log4j

public class LGLogger2Log4j extends Object implements org.gudy.azureus2.core3.logging.ILogEventListener
author
tobi To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Fields Summary
public static Logger
core
private static LGLogger2Log4j
inst
Constructors Summary
Methods Summary
public static org.gudy.azureus2.ui.common.util.LGLogger2Log4jgetInstance()


	    
		if (inst == null)
			inst = new LGLogger2Log4j();
		return inst;
	
public voidlog(org.gudy.azureus2.core3.logging.LogEvent event)

		if (event.entryType == LogEvent.LT_ERROR)
			core.error(event.text);
		else if (event.entryType == LogEvent.LT_WARNING)
			core.log(SLevel.CORE_WARNING, event.text);
		else
			core.log(SLevel.CORE_INFO, event.text);
	
public static voidset()

		org.gudy.azureus2.core3.logging.Logger.addListener(getInstance());