DotNetKick.com is an open-source project. Please report any bugs and let us know your great suggestions. Currently running svn revision 637 (rss)

Kick Spy!, Kick Zeitgeist and Kick Widgets

21
kicks
published 1 year ago, submitted by kasuken 1 year ago

blog.emanuelebartolesi.com — How to use Log4net in your asp.net application.

Add a comment 2 comments | category: | Views: 8 | Get KickIt image code
tags: , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:
His comment system is broken (I tried IE and FF) so I will ask my question here...

Why this...

LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

and not this...

LogManager.GetLogger(GetType());

???

I assume you would get the same type either way. No?
posted by offwhite offwhite 1 year ago
I think the difference would be when that line of code is in a base class and the object is an instance of a child class. In that case GetType() would return the child class type and DeclaringType would return the base class type.
posted by davehogue davehogue 1 year ago



information Login or create an account to comment on this story
 

Sponsored Link: www.carlist.ie

Search:

Ads by The Lounge