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 [...]
Continue reading about Managing remote logging with Log4net and WCF
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, [...]
Continue reading about Intercept Log4Net message in a Windows application
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 [...]
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 [...]
Continue reading about Difference in log4net between threshold and evaluator





