/// <summary> /// 设置日志信息格式 /// </summary> /// <param name="logf"></param> public virtual void SetLogFormatter(LogFormatter logf) { if (logf != null) LogFormatter = logf; }
/// <summary> /// 注册日志信息格式 /// </summary> /// <param name="logFormatName">日志格式名称</param> /// <param name="logFormatter">日志信息格式</param> public static void RegisterLogFormatter(String logFormatName, LogFormatter logFormatter) { if(!LogFormatterDict.ContainsKey(logFormatName)) LogFormatterDict.Add(logFormatName, logFormatter); }