
package uk.co.wingpath.util;

/**
* This class provides a dummy implementation of the {@link Reporter}
* interface.
* All messages are simply printed to the standard error output, prefixed by the
* time and an indication of the message level ("ERROR:", "WARN:", etc.).
*/

public class DummyReporter
    implements Reporter
{
    public DummyReporter ()
    {
    }

    @Override
    public boolean fatal (String fmt, Object... args)
    {
        return true;
    }

    @Override
    public boolean fatal (Throwable t, String fmt, Object... args)
    {
        return true;
    }

    @Override
    public void error (String helpId, String fmt, Object... args)
    {
    }

    @Override
    public void warn (String helpId, String fmt, Object... args)
    {
    }

    @Override
    public void info (String helpId, String fmt, Object... args)
    {
    }

    @Override
    public void trace (String helpId, String fmt, Object... args)
    {
    }

    @Override
    public boolean debug (String fmt, Object... args)
    {
        return true;
    }

    @Override
    public void clear ()
    {
    }
}

