Solved

log4j settings

Posted on 2006-06-23
4
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

691 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