Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 221
  • 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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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