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 9286113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:20:10+00:00 2026-06-18T19:20:10+00:00

Is it possible to configure logback to log at e.g. WARN or INFO level

  • 0

Is it possible to configure logback to log at e.g. WARN or INFO level for all packages but x.y? And then separate configuration for package x.y only.

  • 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-18T19:20:12+00:00Added an answer on June 18, 2026 at 7:20 pm

    I don’t know of any way you can get the “NOT” package aspect of your question, but I routinely log one package at DEBUG and all the rest at INFO and…above is it…WARN and ERROR. This is straight up-the-middle logback. My loggers are all like…

    package rekdev.org.service.api;
    public class DefaultConfigResource {
        // ...
        private static final Logger log = LoggerFactory.getLogger( DefaultConfigResource.class );
        // ...
    }
    

    …on a logback.xml configuration like…

      <logger name="rekdev.org.service.api" level="debug" />
      ...
      <root level="info">
        <appender-ref ref="STDOUT" />
        <appender-ref ref="DAILY_ROLLING" />
        <appender-ref ref="SYSLOG" />
      </root>
    

    Has the effect of most output popping out at INFO, WARN, ERROR but all the rekdev.org.service.api classes. All the classes in the rekdev.org.service.api package produce output at DEBUG, INFO, WARN, ERROR.

    Or did I misunderstand your questions entirely?

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

Sidebar

Related Questions

Is is possible ot configure Chainsaw to read log files that have been customized
Is it possible to 'configure fb:comments social plugin' to show only comments not allowing
Is it possible to configure java.util.logging to compress log files when it rolls onto
Is it possible to configure git to squash merges, but not squash changes from
Is to possible to configure 'label_suffix' other than (:) for all the models in
Is it possible to configure a <form:errors/> element that only shows non field errors?
I am aware that it is possible to configure vim to highlight all matches
Is it possible to configure a flash SWF so that it not only is
Is it possible to configure grails to resolve controllers and actions using the package
Is it possible to configure Mojo::Log in a way so it adds the line

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.