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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:38:24+00:00 2026-06-14T23:38:24+00:00

I am migrating from log4j to logback in my Spring MVC based web application.

  • 0

I am migrating from log4j to logback in my Spring MVC based web application. Currently, Spring’s Log4jConfigListener is configure in web.xml to locate log4j.xml file as shown below:

<context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>WEB-INF/spring/log4j.xml</param-value>
</context-param>

<listener>
    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
</listener>

Now, I have created logback.xml file under WEB-INF/spring folder. Is there a similar configuration in web.xml for logback also?

I don’t find any LogbackConfigListener class in org.springframework.web.util package of Spring 3.1

  • 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-14T23:38:26+00:00Added an answer on June 14, 2026 at 11:38 pm

    As of Spring 3.1.x there is no way of configuring Logback with Spring using listeners.

    This blog mentions that someone has sended the petition to mailing list though.

    Anyways, qos-ch (Les Hazlewood) has created an artifact (spring extension) for such case. Check the github repo.

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

Sidebar

Related Questions

we are migrating from WebLogic web-services to Spring-WS (1.5.X). There is currently one issue
I'm migrating from the original file- based datastore to the sqlite version. I have
My application has a homebrew logging class that I'm migrating to using log4j under
I'm currently migrating from a Linux (Apache) server to Windows (IIS). On Linux I'm
Currently migrating from SQL Server to PostgreSQL and attempting to improve a couple of
We are migrating from Remoting to WCF a very big application that makes intensive
Currently we are migrating from Delphi 2007 to Delphi XE2 to support Unicode .
Hello We're currently migrating from SVN to TFS, and when I created the Team
We're migrating from an SVN server inside our office to a hosted service. Currently
I am migrating from programming to 'web programming', so this may sound too basic

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.