package prolog.ui;

import prolog.*;
import prolog.model.*;

import prolog.util.*;


public class ConsoleLogger
	implements ILogger
{
	protected Console console = null;

	public ConsoleLogger( Console c )
	{
		this.console = c;
	}

	public void msg( String text )
	{
		console.printlnThreadSafe( text );
	}

	public void msg( String text, int depth )
	{
		console.printlnThreadSafe( StringBuilder.buildTabs( depth ) + text );
	}
}
