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

package lt.monarch.debug;

import java.util.Enumeration;
import java.util.Vector;

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

public class MultiLogEngine
    implements ErrorLogEngine
{

    public void close()
    {
        synchronized (logEngines)
        {
            ErrorLogEngine errorlogengine;
            for (Enumeration enumeration = logEngines.elements(); enumeration.hasMoreElements(); errorlogengine.close())
                errorlogengine = (ErrorLogEngine)enumeration.nextElement();

        }
    }

    public void log(ErrorLogEngine.LogPacket logpacket)
    {
        synchronized (logEngines)
        {
            ErrorLogEngine errorlogengine;
            for (Enumeration enumeration = logEngines.elements(); enumeration.hasMoreElements(); errorlogengine.log(logpacket))
                errorlogengine = (ErrorLogEngine)enumeration.nextElement();

        }
    }

    public void addLogEngine(ErrorLogEngine errorlogengine)
    {
        synchronized (logEngines)
        {
            logEngines.addElement(errorlogengine);
        }
    }

    public void removeLogEngine(ErrorLogEngine errorlogengine)
    {
        synchronized (logEngines)
        {
            logEngines.removeElement(errorlogengine);
        }
    }

    public MultiLogEngine()
    {
        logEngines = new Vector();
    }

    protected Vector logEngines;
}
