我使用的是Microsoft.Practices.EnterpriseLibrary.Logging,但是没有创建日志文件请帮忙 [英] I m using Microsoft.Practices.EnterpriseLibrary.Logging , but log file is not created please help

查看:60
本文介绍了我使用的是Microsoft.Practices.EnterpriseLibrary.Logging,但是没有创建日志文件请帮忙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆