事件日志文件已满 [英] The Event Log File is full
本文介绍了事件日志文件已满的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直想写从一个控制台应用程序事件日志时收到此错误信息。 下面是我写它
I keep getting this error message when trying to write to the Event log from a console app. Here's how i write to it
public static void WriteToEventLog(Exception ex)
{
string mySource = "Export Task";
if (!EventLog.SourceExists(mySource))
EventLog.CreateEventSource(mySource, "Application");
EventLog myLog = new EventLog();
myLog.Source = mySource;
myLog.WriteEntry(ex.ToString());
}
有谁知道这是为什么发生,我怎么能解决这个问题?
Does anyone know why this is happening and how i can fix it?
推荐答案
对我来说,它听起来就像:
To me it sounds like:
- 这是怎么回事,因为事件日志已满。
- 将清空事件日志修复它。
如果不是这种情况,请编辑您的问题说清楚,你相信事件日志的不是的满了,你是如何得出这一结论。
If this isn't the case, please edit your question to make it clear that you believe the event log isn't full, and how you came to this conclusion.
这篇关于事件日志文件已满的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文