更新时间:2023-02-17 21:17:27
请参阅Microsoft 企业库.它包括记录应用程序块,并且文档可能正是您所需要的.您无需先安装该库即可查看 MSDN文档.具体来说,请参见关键方案和日志记录应用程序块的设计来回答您的问题(甚至即使您没有使用.NET也是如此).
See the Microsoft Enterprise Library. It includes the Logging Application Block and that documentation might be what you are looking for. You can see the MSDN Documentation without having to install the library first. Specifically, see Key Scenarios and Design of the Logging Application Block to answer your question (maybe even if you are not using .NET).
更新(2013年4月23日),请参见语义记录应用程序块
UPDATE (April 23, 2013) See Embracing Semantic Logging using the new Semantic Logging Application Block