0

I would like to write a text in a log file every time someone calls a function into my assembly. I know that I should use postsharp but it's too expensive for my purpose.

If there are any other possibilities, please inform me of those.

Destrictor
  • 752
  • 1
  • 4
  • 15
Salvatore Di Fazio
  • 705
  • 2
  • 7
  • 25

1 Answers1

1

Some time ago I used Spring.Net for the same purpose. Not sure what's the status of that project now, but at the time it was free. You'll be using Aspect Oriented Programming, which should be similar to the way Postsharp works...

This article shows you how you can achieve what you need with Sprint.net: http://www.codeproject.com/Articles/26726/AOP-Using-Spring-NET-Part-1

Dante
  • 3,833
  • 4
  • 38
  • 55