2008-09-14

Log4PostSharp 1.0.1

Today I've uploaded an update for the Log4PostSharp that has the following changes:
  • recompiled against PostSharp 1.0 RTM,
  • code that is injected no longer caches values of the log.IsDebugEnabled properties - this resolves some settings related issues and enables support for the log4net's ability to reload settings in run-time.
The new version can be downloaded from http://postsharp-user-plugins.googlecode.com/files/Log4PostSharp-1.0.1.0-Release-2.0.zip.

Submit this story to DotNetKicks

4 comments:

hafi80 said...

andreas.hafellner@student.tugraz.at

markell said...

Hi Michal. This comes as a real help and huge thanks to you. I have made little additions to your code, namely: 1. Added {method}, {inparamvalues} and {outparamvalues} templates. 2. Only string parameter values are quoted. 3. Added LogAttribute.IncludeParamNames, which when set causes parameters to be logged with their respective names. I would like to send you the diffs, if you do not mind, to get any feedback. I am sure it will be valuable. There are a few more things I wanted to do, but unfortunately code weaving is still a mistery for me. Specifically, I think there should be a way to tell the LogAttribute how ToString the parameter values. I mean, the default implementation of ToString in list types is not much useful. Something, like LogConfigAttribute, which could be given various configuration options, one of which could be the location of the custom ToString procedure. This way, we get two goals achieved: 1. Customized ToString 2. No boxing during object[] parameters array creation. Another thing, is that the injected code is always inside the respective isXXXEnabled if statement. But, it is only needed if we actually create the object[] parameters array. In all other cases, we just pay for this extra check. I would really like to hear your opinion. Again, thanks for the great work.

Unknown said...

This is one good blog I have come across. I am going to bookmark it right now.

http://www.onlinewebmarket.net/search-engines-directories-and-seo-discussions/

Zita said...

Well, we will take down the changes you have here.. I feel very interesting to read all you posts. They are very informative. Thanks for sharing. Ecommerce website developers