package prolog.util;

import prolog.model.*;

/**
 * <p>Title: StdOutLogger</p>
 * <p>Descrpition: A logger routing to System.out.println</p>
 */
public class StdOutLogger
	implements ILogger
{
	public StdOutLogger()
	{
	}

	/**
	 * simple log call
	 * @param msg is the message
	 */
	public void msg( String msg )
	{
		System.out.println( msg );
	}

	/**
	 * log call with some tabs before
	 * @param msg is the message
	 * @param depth is the number of tabs
	 */
	public void msg( String msg, int depth )
	{
		System.out.println( StringBuilder.buildTabs( depth ) + msg );
	}
}
