using NLog;

namespace Model
{
	public class NLogAdapter: ALogDecorater, ILog
	{
		private readonly Logger logger = LogManager.GetCurrentClassLogger();

		public NLogAdapter(ALogDecorater decorater = null): base(decorater)
		{
		}

		public void Warning(string message)
		{
			this.logger.Warn(this.Decorate(message));
		}

		public void Info(string message)
		{
			this.logger.Info(this.Decorate(message));
		}

		public void Debug(string message)
		{
			this.logger.Debug(this.Decorate(message));
		}

		public void Error(string message)
		{
			this.logger.Error(this.Decorate(message));
		}
	}
}