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

  • Home
  • SEARCH
  • 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 9021883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:21:47+00:00 2026-06-16T05:21:47+00:00

I want INFO for everything and DEBUG for one package. I’ve tried numerous variations

  • 0

I want INFO for everything and DEBUG for one package. I’ve tried numerous variations of:

<log4net>
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
        <param name="File" value="C:/temp/AutoTag.log"/>
        <param name="AppendToFile" value="true"/>
        <param name="MaxSizeRollBackups" value="2"/>
        <param name="MaximumFileSize" value="100KB"/>
        <param name="RollingStyle" value="Size"/>
        <param name="StaticLogFileName" value="true"/>
        <layout type="log4net.Layout.PatternLayout">
            <param name="ConversionPattern" value="%d [%t] ac.server %-5p %c - %m%n"/>
        </layout>
    </appender>
    <root>
        <level value="INFO"/>
        <appender-ref ref="RollingFileAppender"/>
    </root>
    <logger name="AutoTagCore.net.windward.autotag.utils">
        <level value="DEBUG"/>
    </logger>
</log4net>

But nothing works. If I remove the <root/> part, I get the detailed in the one package. Otherwise it’s as though the <logger/> part is not there.

How can I accomplish this? (Updated to show full log4net part).

Update2: I’m an idiot – I had the wrong package name in there.

  • 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-06-16T05:21:50+00:00Added an answer on June 16, 2026 at 5:21 am

    Logger will inherit all appenders from root. You need to specify level only:

    <root>
        <level value="INFO"/>
        <appender-ref ref="RollingFileAppender"/>
    </root>
    <logger name="AutoTagCore.net.windward.autotag.utils">
        <level value="DEBUG"/>
    </logger>
    

    BTW Verify appender settings – it could be restricted to INFO level:

    <threshold value="INFO"/>
    

    And last possible issue – you can have different type namespace and logger name (maybe some typo).

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

Sidebar

Related Questions

I want to keep SSH debug info separate (and logged) from other input. However,
I want to remove the EXIF information (including thumbnail, metadata, camera info... everything!) from
When the user enters info I want all the controls to look and act
i have a problem. i want to get info about my string have other
I'm trying to use preg_match to extract info from href=domain.com/subdir/?key=value The info I want
For instance, if I have: C:\42\main.py and C:\42\info.txt and I want to read info.txt
I want to get some basic info of all contacts(I use api lvl 8).
I want to remove all stored revision info, except for the most up to
I want to get the process memory Info in C. I am using Cygwin
I want to put some extra info on how program works, if theres an

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.