using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace RoadFlow.Data { public interface ILog:IRoadFlowRepository { /// /// 添加日志 /// /// /// /// /// /// /// /// /// /// /// /// public void Add(string title, string CurrentUserId = "", string contents = "", LogType type = LogType.其他, string oldContents = "", string newContents = "", string others = "", string browseAgent = "", string ipAddress = "", string url = "", string userId = "", string userName = ""); /// /// 得到日志类型 /// /// 日志类型 /// 语言 /// public string GetLogType(string type, string language); /// /// 添加异常日志 /// /// 异常类 /// 标题 如果为空用err.Message public void Add(Exception err, string title = ""); } }