Method's return value

Topics: Logging Application Block
Oct 10, 2007 at 3:45 PM
Hi,

I want to write a method's return value into a LogEntry property.
How can I do this?
Thanks!
Oct 11, 2007 at 1:20 PM
Hi,

Can you explain in more detail what you need? Would setting the LogEntry's message to some string including the return value work, or you need to be able to use the original value downstream? To include the original value you'll need to add it to the ExtendedProperties dictionary.

Fernando
Oct 11, 2007 at 3:32 PM
I need only some string.


fsimonazzi wrote:
Hi,

Can you explain in more detail what you need? Would setting the LogEntry's message to some string including the return value work, or you need to be able to use the original value downstream? To include the original value you'll need to add it to the ExtendedProperties dictionary.

Fernando