private void PrintLog()
{
NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log);
// 摄像头视频关系日志
string videoLog = "Log CameraVideoRelation: ";
Dictionary<string, List<string>> videoDic = new Dictionary<string, List<string>>(this.cameraVideoRelationDic);
if (null != videoDic)
{
foreach (KeyValuePair<string, List<string>> pair in videoDic)
{
videoLog += pair.Key;
if (null == pair.Value)
{
continue;
}
foreach (string item in pair.Value)
{
videoLog += item;
}
videoLog += " ";
}
}
logEx.Info(videoLog);
string audioLog = "Log CamreaAudioRelation: ";
Dictionary<string, List<string>> audioDic = new Dictionary<string, List<string>>(this.cameraAudioRelationDic);
if (null != audioDic)
{
foreach (KeyValuePair<string, List<string>> pair in audioDic)
{
audioLog += pair.Key;
if (null == pair.Value)
{
continue;
}
foreach (string item in pair.Value)
{
audioLog += item;
}
audioLog += " ";
}
}
logEx.Info(audioLog);
}