package marc.scp.sshutils;

import com.jcraft.jsch.Logger;

import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.nio.charset.Charset;


public class ConnectionInfo implements Logger
{
    static java.util.Hashtable name=new java.util.Hashtable();

    static
    {
        name.put(new Integer(DEBUG), "DEBUG: ");
        name.put(new Integer(INFO),  "INFO: ");
        name.put(new Integer(WARN),  "WARN: ");
        name.put(new Integer(ERROR), "ERROR: ");
        name.put(new Integer(FATAL), "FATAL: ");
    }

    public boolean isEnabled(int level)
    {
        return true;
    }

    public void log(int level, String message)
    {
        System.err.print(name.get(new Integer(level)));
        System.err.println(message);
    }
}
