How to write just message to debug output with Enterprise Library Logging?

前端 未结 2 782
北海茫月
北海茫月 2021-02-05 15:04

I want to implement logging with EntLib Logging and hook up two TraceListeners for category \"Debugging\". One will write those messages to file and other will output them to sy

2条回答
  •  渐次进展
    2021-02-05 15:46

    In the EntLib configuration for your app you specify which Formatter you wish to use. The default formatter includes all this information. To remove the information you are not interested either remove them from the TextFormatter you are currently using or create a new text formatter containing the fields you want and change "Debugging" to use your new formatter.

提交回复
热议问题