问题描述
作为我工作的一部分,我正在使用C#和Visual Studio,以及可视系统日志。 我需要制造一个创建空日志行的进程。有人对此有一个想法\一些方向?
这些是发送到syslog服务器的值:(我不明白如何使这些值为空)
T:\RedLight\Client\HelperC\BZLogger.cpp(67): LogDataFormatter(eventPrefix + "Date",date) +
T:\RedLight\Client\HelperC\BZLogger.cpp(68): LogDataFormatter(eventPrefix + "Time",time) +
T:\RedLight\Client\HelperC\BZLogger.cpp(69): LogDataFormatter(eventPrefix + "ID",eventId) +
T:\RedLight\Client\HelperC\BZLogger.cpp(70): LogDataFormatter(eventPrefix + "User",userName) +
T:\RedLight\Client\HelperC\BZLogger.cpp(71): LogDataFormatter(eventPrefix + "Machine",machine) +
T:\RedLight\Client\HelperC\BZLogger.cpp(72): LogDataFormatter(eventPrefix + "ProcessPath",processPath) +
T:\RedLight\Client\HelperC\BZLogger.cpp(73): LogDataFormatter(eventPrefix + "ProcessFlags",processFlags) +
T:\RedLight\Client\HelperC\BZLogger.cpp(74): LogDataFormatter(eventPrefix + "PID",processId) +
T:\RedLight\Client\HelperC\BZLogger.cpp(75): LogDataFormatter(eventPrefix + "Operation",operation) +
T:\RedLight\Client\HelperC\BZLogger.cpp(76): LogDataFormatter(eventPrefix + "TrustZone",trustZone) +
T:\RedLight\Client\HelperC\BZLogger.cpp(77): LogDataFormatter(eventPrefix + "Destination",destination) +
T:\RedLight\Client\HelperC\BZLogger.cpp(78): LogDataFormatter(eventPrefix + "Location",location) +
T:\RedLight\Client\HelperC\BZLogger.cpp(79): LogDataFormatter(eventPrefix + "Source",source);
T:\RedLight\Client\HelperC\BZLogger.cpp(96): log += LogDataFormatter(eventPrefix + "Hash(MD5)",hashMD5);
T:\RedLight\Client\HelperC\BZLogger.cpp(97): log += LogDataFormatter(eventPrefix + "File ID",hashFileId);
T:\RedLight\Client\HelperC\BZLogger.cpp(100): log += LogDataFormatter(eventPrefix + "Comments",comments);
T:\RedLight\Client\HelperC\BZLogger.cpp(101): log += LogDataFormatter(eventPrefix + "Access",desiredAccess,true);
T:\RedLight\Client\HelperC\BZLogger.cpp(182): LogDataFormatter(processPrefix + "DateTime",dateTime) +
T:\RedLight\Client\HelperC\BZLogger.cpp(183): LogDataFormatter(processPrefix + "Event",eventType) +
T:\RedLight\Client\HelperC\BZLogger.cpp(184): LogDataFormatter(processPrefix + "User",userName) +
T:\RedLight\Client\HelperC\BZLogger.cpp(185): LogDataFormatter(processPrefix + "Machine",machine) +
T:\RedLight\Client\HelperC\BZLogger.cpp(186): LogDataFormatter(processPrefix + "Path",path);
T:\RedLight\Client\HelperC\BZLogger.cpp(209): log += LogDataFormatter(processPrefix + "TrustZone",trustZoneType);
T:\RedLight\Client\HelperC\BZLogger.cpp(210): log += LogDataFormatter(processPrefix + "Hash(MD5)",hash);
T:\RedLight\Client\HelperC\BZLogger.cpp(211): log += LogDataFormatter(processPrefix + "Flag",processFlags);
T:\RedLight\Client\HelperC\BZLogger.cpp(222): log += LogDataFormatter(processPrefix + "ID",pid);
T:\RedLight\Client\HelperC\BZLogger.cpp(226): log += LogDataFormatter(processPrefix + "Argument",processSegmentList[i]);
T:\RedLight\Client\HelperC\BZLogger.cpp(229): log += LogDataFormatter(processPrefix + "Severity",severity,true);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)