Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 452543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T22:04:59+00:00 2026-05-12T22:04:59+00:00

Let me explain my scenario first: I have around 2000 tests to run, which

  • 0

Let me explain my scenario first:

  1. I have around 2000 tests to run, which take about 30 seconds in NUnit
  2. I want to find out what’s taking the time
  3. I open Ants Profiler, and get it to profile the NUnit TestRunner, and load my test dll into the TestRunner
  4. I then run the tests…

However, running the tests whilst profiling takes a lot longer (about 5 minutes to run all the tests, rather than 30 seconds). When i look through the timings in Ants Profiler, it seems log4net is being called in a lot of places, which seems to be taking up the time.

So, this is my question: how do i stop log4net logging stuff when i’m running the tests in this manner?

I can find 3 config files:

  1. In the test dll folder, there’s a config.log4net file. I’ve put <level value=”OFF” /> in there, and deleted all the appender sections
  2. In the test runner folder, there’s a nunit.exe.config, and a nunit-console.exe.config file – i’ve put <level value=”OFF” /> in both of those.
  3. I can’t find any config files to play with in the ants profiler folder.

None of this seems to work, looking through the profile results i can see log4net being called, and it’s definitely calling methods to output the logging information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T22:04:59+00:00Added an answer on May 12, 2026 at 10:04 pm

    In the test setup, get the root logger and set it’s log level to OFF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, let me explain what I am doing. I need to take an order,
OK let me explain the scenario. I am developing an app which has a
I need a help. Let me first explain the scenario with a small sample.
I got stuck with this scenario. Let me explain as follows. I have a
Ok, let me explain the scenario. I have a orders table with a auto
I'm using Subclipse 1.6x plugin in Eclipse. Let me explain the scenario first: Say
let me explain my current situation i have a SharePoint site lets say it
Let me explain. Suppose I want to teach Python to someone who only speaks
Alright let me explain my situation first: I am part of an organization that
First let me explain how I currently handle validation, say, for an IPv4 address:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.