Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

log4j settings

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
inzaghi
Asked:
inzaghi
  • 3
2 Solutions
 
girionisCommented:
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
 
girionisCommented:
0
 
objectsCommented:
0
 
girionisCommented:
:)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now