PDA

View Full Version : Please help me...



cuopbien
12-28-2007, 05:14 AM
I want to know how to writting log in Spring.Net??? Please...:)

steinard
12-28-2007, 10:02 AM
Hi!

I guess you will use AOP then, and the best way to get started is to read this: http://www.springframework.net/doc-latest/reference/html/aop-quickstart.html

Cheers,
Steinar.

Mark Pollack
12-28-2007, 02:18 PM
Hi,

Not sure what you mean by 'writting log'. If you mean configuring Spring.NET's internal logging then you should check out the ref docs regarding the use of Common.Logging (http://www.springframework.net/doc-latest/reference/html/logging.html).

If you are interested applying logging to many of your classes, i.e. 'Entered method Foo with parameters x,y,z' etc. then you can look to an AOP approach. The link above will help you get started writing your own AOP logging advice. However, there is a pre-built solution you can use, check out the docs on the logging aspect (http://www.springframework.net/doc-latest/reference/html/aop-aspect-library.html#logging-aspect) in Spring's Aspect library.

Cheers,
Mark

cuopbien
01-08-2008, 02:16 AM
Thanks for helping.