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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:56:34+00:00 2026-05-22T12:56:34+00:00

I am developing a Spring MVC 3.0.4 webapp and Logger factroy doesn’t work for

  • 0

I am developing a Spring MVC 3.0.4 webapp and Logger factroy doesn’t work for the Controller classes other than HomeController.java. I initilize the Logger factory like:

private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
private static final Logger logger = LoggerFactory.getLogger(RequestDataController.class);

and

 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;

is added for both classes

What configuration is missing?

  • 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-22T12:56:34+00:00Added an answer on May 22, 2026 at 12:56 pm

    It seems SLF4J is missconfigured. You use it for you own logging and that’s a right choice! But Spring has JCL logging framework hardcoded. It’s an abstarction layer that is typically configured with Log4J implementation. Please, visit this link where some JCL-to-SLF4J drop-in replacements described. If you want to leave both Log4J and SLF4j in your project than add proper logging preferences into log4j.properties or log4j.xml for core spring packages.

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

Sidebar

Related Questions

I am developing my application using spring-web-mvc... Now at my Controller it returns like
I'm developing a webapp with Hibernate+Spring 3 (Spring MVC, JSP): I'd like to create
I am developing a webapp using Spring MVC 3 and have the DispatcherServlet catching
I'm developing webapp using spring 3 mvc and using annotation-based controllers. I want to
Background I am developing an application (with Spring MVC ) with its base path
I am using Spring Web MVC and Hibernate for developing my application. My login.jsp
I've been developing a simple Spring MVC application as a reporting service. Locally, I've
I am developing an application in Spring Web MVC where i need to execute
I'm developing a Java/Spring web application. The problem I'm currently facing is that I'd
Which is the best base java IDE (eclipse, Netbean) for developing spring based application

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.