﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RemoteTech
{
    class Log4NetLoggerWrapper : ILog
    {
        public log4net.ILog Logger { get; private set; }
        public Log4NetLoggerWrapper(log4net.ILog logger)
        {
            this.Logger = logger;
        }

        void ILog.Debug(Object obj)
        {
            Logger.Debug(obj);
        }

        void ILog.Debug(Object obj, Exception e)
        {
            Logger.Debug(obj, e);
        }

        void ILog.DebugFormat(String msg, params Object[] args)
        {
            Logger.DebugFormat(msg, args);
        }

        void ILog.Error(Object obj)
        {
            Logger.Error(obj);
        }

        void ILog.Error(Object obj, Exception e)
        {
            Logger.Error(obj, e);
        }

        void ILog.ErrorFormat(String msg, params Object[] args)
        {
            Logger.ErrorFormat(msg, args);
        }

        void ILog.Fatal(Object obj)
        {
            Logger.Fatal(obj);
        }

        void ILog.Fatal(Object obj, Exception e)
        {
            Logger.Fatal(obj, e);
        }

        void ILog.FatalFormat(String msg, params Object[] args)
        {
            Logger.FatalFormat(msg, args);
        }

        void ILog.Info(Object obj)
        {
            Logger.Info(obj);
        }

        void ILog.Info(Object obj, Exception e)
        {
            Logger.Info(obj, e);
        }

        void ILog.InfoFormat(String msg, params Object[] args)
        {
            Logger.InfoFormat(msg, args);
        }

        void ILog.Warn(Object obj)
        {
            Logger.Warn(obj);
        }

        void ILog.Warn(Object obj, Exception e)
        {
            Logger.Warn(obj, e);
        }

        void ILog.WarnFormat(String msg, params Object[] args)
        {
            Logger.WarnFormat(msg, args);
        }
    }
}
