本文介绍了外部AOP(如AspectJ)为.net编织?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过编织IL中的代理来在程序中进行跟踪日志记录.当前有哪些框架对此有帮助?

I want to do trace logging in a program by weaving in proxies in the IL. What are some current frameworks that are good for this?

(我搜索过的大多数人都是旧的或没有文档,这就是我问的原因.

(Most of the ones I've Googled are either old or don't have documentation, that is why I ask.

推荐答案

我在.Net中遇到的最常见的事情是.它已经存在了一段时间并且是众所周知的.它有一个特定示例,用于介绍如何在其网站上插入日志记录.

The most common thing I've come across for doing this type of thing in .Net is PostSharp. It has been around for a while and is well-known. It has a specific example for how to inject logging on its website.

这篇关于外部AOP(如AspectJ)为.net编织?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 04:43