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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:13:03+00:00 2026-05-11T14:13:03+00:00

Suppose I have these packages in my application – foo.bar and foo.foobar, And I

  • 0

Suppose I have these packages in my application – foo.bar and foo.foobar, And I want to send all log4j log messages that are coming from foo.bar package to foobar.log file and the log messages coming from foo.foobar to foofoobar.log file, how should I configure the log4j.xml file?

  • 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. 2026-05-11T14:13:04+00:00Added an answer on May 11, 2026 at 2:13 pm

    You can use appender-ref in the logger configuration:

    <logger name='foo.bar'>     <level value='debug'/>     <appender-ref ref='FILE1' /> </logger> 

    Have a look here for full examples.

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

Sidebar

Related Questions

Let's suppose I have all of these already provided: The name of a table
Suppose I have an IEnumerable<int> and I want these to be converted into their
Suppose I have these domain objects: DataPoint ========= public int Id {get;set;} public int
Suppose you have these modules: module1.py import module2 def a(): module1.b() def c(): print
Suppose you have these tables: Table Name: Salesman Fields: S_ID(Primary Key), Name Table Name:
Let us suppose i have these three methods defined: int F1(int, int); int F1(float,
Suppose I have several services represented by classes ServiceA, ServiceB, ServiceC etc. These services
Suppose that I have n points (x,y1),(x2,y2),.....(xn,yn) my aim is to connect these points
Suppose you have a HUGE application "develoopped" ;) by a big team. Here is
I am solving the following problem: Suppose I have a list of software packages

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.