protected virtual void FormatLogContent(LogEntity entity) { }
/// <summary> /// 抽象类的抽象方法,继承者必须实现他 /// </summary> /// <param name="entity"></param> /// <returns></returns> protected abstract bool DoSaveLog(LogEntity entity);
protected override void FormatLogContent(LogEntity entity) { entity.Content.Message = entity.Content.Message.Replace("//", "--"); }