// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   ErrorLog.java

package lt.monarch.debug;


// Referenced classes of package lt.monarch.debug:
//			ErrorLogEngine

public class ErrorLog
{

	protected static ErrorLog defaultLog;
	protected ErrorLogEngine engine;

	public static final ErrorLog defaultLog()
	{
		return defaultLog;
	}

	public static void setDefaultLog(ErrorLog errorlog)
	{
		defaultLog = errorlog;
	}

	public void close()
	{
		engine.close();
	}

	public void log(Throwable throwable)
	{
		ErrorLogEngine.LogPacket logpacket = new ErrorLogEngine.LogPacket(throwable);
		engine.log(logpacket);
	}

	public void log(String s, Throwable throwable)
	{
		ErrorLogEngine.LogPacket logpacket = new ErrorLogEngine.LogPacket(s, throwable);
		engine.log(logpacket);
	}

	public void log(String s)
	{
		ErrorLogEngine.LogPacket logpacket = new ErrorLogEngine.LogPacket(s);
		engine.log(logpacket);
	}

	public ErrorLog(ErrorLogEngine errorlogengine)
	{
		engine = errorlogengine;
	}
}
