What is the best way to write event log entries?

后端 未结 6 1168
盖世英雄少女心
盖世英雄少女心 2020-12-08 08:35

I recently had a problem during the deployment of a windows service. Four computers did not cause any problems, but on the fifth any attempt to start the service failed due

6条回答
  •  时光说笑
    2020-12-08 08:50

    Look into utilizing the Logging App Block.

    The Enterprise Library Logging Application Block simplifies the implementation of common logging functions. Developers can use the Logging Block to write information to a variety of locations:

    • The event log
    • An e-mail message
    • A database
    • A message queue
    • A text file
    • A WMI event
    • Custom locations using application block extension points

提交回复
热议问题