Solved

log4j settings

Posted on 2006-06-23
4
210 Views
Last Modified: 2011-09-20
I need to split my logging for a classes that belong to this package com.a.c.d

What I need to do is split the logging levels as follows:

1) INFO be directed to one file
2) All other debug, error, warning go to another fiile

can this be done and how?

many thnaks
0
Comment
Question by:inzaghi
  • 3
4 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 16967461
Yes you can do it, you just need to define different loggers, have a look here for a short tutorial: http://logging.apache.org/log4j/docs/manual.html
0
 
LVL 35

Accepted Solution

by:
girionis earned 350 total points
ID: 16967469
0
 
LVL 92

Assisted Solution

by:objects
objects earned 150 total points
ID: 16968164
0
 
LVL 35

Expert Comment

by:girionis
ID: 16979744
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
topping3 challenge 14 70
Starting to learn JAVA, 7 59
eclipse java  build path 6 44
tomcat not starting 6 29
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now