alkampfer on September 2nd, 2011

I’ve applications that can work in two distinct configuration, they are based on WPF and MVVM, where the VM communicates with the Domain / Business Logic through services like IXxxxService. All View Models depends from one or more services and thanks to Castle I can decide with configuration file which concrete class to use for [...]

kick it on DotNetKicks.com

Continue reading about Managing remote logging with Log4net and WCF

alkampfer on May 11th, 2011

Scenario: I have some service that runs in the background, but I want the user to be able to launch interactively with a  windows form application and I want to intercept all log4net messages issued by the various components that works in the background. Thanks to the supereasy way to write an appender in log4net, [...]

kick it on DotNetKicks.com

Continue reading about Intercept Log4Net message in a Windows application

alkampfer on July 5th, 2010

  I’m currently profiling a web application, and I noticed that for some combination of input, a specific search into the database is really really slow. After verifying that the query is not responsible for this problem I fire a profiler, load the page, issue the search and then verify with ant profiler the method [...]

kick it on DotNetKicks.com

Continue reading about Extremely slow operation and log4net

alkampfer on October 22nd, 2009

In log4net configuration you can filter out event by level in almost any appender, since it is supported by the AppenderSkeleton, the base class for every appender. <appender name=”GeneralLog” type=”log4net.Appender.RollingFileAppender”> <file value=”Logs/exception.txt” /> <appendToFile value=”true” /> <maximumFileSize value=”10000KB” /> <rollingStyle value=”Size” /> <maxSizeRollBackups value=”5″ /> <threshold value=”ERROR”/> Sometimes I see different configuration that uses an [...]

kick it on DotNetKicks.com

Continue reading about Difference in log4net between threshold and evaluator