none
该程序库好像不能把同一条Log写到多个地方,是吗? RRS feed

答案

  • 是可以的.在EntLib Configuration Console中打开LoggingQuickStart.exe.config, 在Distributor Settings\Categories\General 下添加一个”File” Destination, 如下:<br><br>Categories <br>  General <br>     Event Log Destination <br>       Name: Event Log Destination <br>       Formatter Name: Text Formatter <br>       Sink Name: Event Log Sink<br>     File Destination<br>       Name: File Destination<br>       Formatter Name: Text Formatter<br>       Sink Name: Flat File Sink<br><br>这样在log category 为“General”的日志项时,就会写到EventLog (LoggingQuickStart) 和trace.log中。<br>

     

    2007年7月31日 8:09