using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIZ.Package.Domain;

namespace VIZ.Package.Common
{
    /// <summary>
    /// 日志扩展
    /// </summary>
    public static class LogExpand
    {
        /// <summary>
        /// 添加命令日志
        /// </summary>
        /// <param name="log">日志</param>
        /// <param name="msg">消息</param>
        public static void AppendCommandLog(this ILog log, string msg)
        {
            VizCommandLogMessage message = new VizCommandLogMessage();
            message.Log = msg;

            ApplicationDomainEx.MessageManager.Send(message);
        }
    }
}
