为 .net 编织的外部 AOP(如 AspectJ)? [英] External AOP (like AspectJ) weaving for .net?

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

问题描述

我想通过在 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?

(我在 Google 上搜索的大部分内容要么过时,要么没有文档,这就是我问的原因.

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

推荐答案

我在 .Net 中遇到的最常见的事情是 PostSharp.它已经存在了一段时间并且是众所周知的.它有一个关于如何在其网站上注入日志的具体示例.

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.

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆