我使用的是Microsoft.Practices.EnterpriseLibrary.Logging,但是没有创建日志文件请帮忙 [英] I m using Microsoft.Practices.EnterpriseLibrary.Logging , but log file is not created please help
问题描述
< loggingconfiguration name =Logging Application Blocktracingenabled =truedefaultcategory =Tracinglogwarningswhennocategoriesmatch =true>
< listeners> < add filename =C:\ Logging.loglistenerdatatype =Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.CustomTraceListenerData,Microsoft.Practices.EnterpriseLibrary.Logging>
traceOutputOptions =无type =Arcs.LogViewer.LogViewerTraceListener,Arcs.LogViewername =LogViewer TraceListenerinitializeData =/>
< specialsources>
< allevents switchvalue =Allname =All Events>
< listeners> < add name =LogViewer TraceListener>
< notprocessed switchvalue =Allname =Unprocessed Category>
< errors switchvalue =Allname =Logging Errors& Warnings>
<loggingconfiguration name="Logging Application Block" tracingenabled="true" defaultcategory="Tracing" logwarningswhennocategoriesmatch="true">
<listeners> <add filename="C:\Logging.log" listenerdatatype="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.CustomTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging">
traceOutputOptions="None" type="Arcs.LogViewer.LogViewerTraceListener, Arcs.LogViewer" name="LogViewer TraceListener" initializeData=""/>
<specialsources>
<allevents switchvalue="All" name="All Events">
<listeners> <add name="LogViewer TraceListener">
<notprocessed switchvalue="All" name="Unprocessed Category">
<errors switchvalue="All" name="Logging Errors & Warnings">
推荐答案
这篇关于我使用的是Microsoft.Practices.EnterpriseLibrary.Logging,但是没有创建日志文件请帮忙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!