/// <summary> /// 写入日志函数,播放历史类型 /// </summary> /// <param name="programName">节目名称</param> /// <param name="message">消息</param> /// <param name="authorName">作者名</param> /// <param name="duration">持续时间</param> /// <param name="path">路径</param> private static void writeHistory(string programName, string message, string authorName, string duration, string path) { //写到本地 historyLog.History(programName, message, authorName, duration, path); //写到日志服务器 writeHistoryToFlume(programName, message, authorName, duration, path); }