package smart_gs.util;

import org.apache.commons.logging.*;

public class GSLog implements Log {
	
	private static Log log = LogFactory.getLog(GSLog.class);
	private static GSLog singleton = new GSLog();
	
	public static GSLog getInstance() {
		return singleton;
	}
	
	@Override
	public void debug(Object arg0) {
//		GSLog.log.debug(arg0);
		
	}

	@Override
	public void debug(Object arg0, Throwable arg1) {
		GSLog.log.debug(arg0,arg1);
	}

	@Override
	public void error(Object arg0) {
//		GSLog.log.error(arg0);
//		Stub
		System.out.println("Error:" + arg0);
	}

	@Override
	public void error(Object arg0, Throwable arg1) {
		GSLog.log.error(arg0,arg1);
	}

	@Override
	public void fatal(Object arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void fatal(Object arg0, Throwable arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void info(Object arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void info(Object arg0, Throwable arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public boolean isDebugEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isErrorEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isFatalEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isInfoEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isTraceEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean isWarnEnabled() {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void trace(Object arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void trace(Object arg0, Throwable arg1) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void warn(Object arg0) {
//		this.log.error(arg0);
		System.out.println("Warning:" + arg0);
	}

	@Override
	public void warn(Object arg0, Throwable arg1) {
//		this.log.error(arg0,arg1);
	}

}
