Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Originally posted by Paul Clapham:
You don't have to use the class name as the logger name. Try something like one of these:
Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Originally posted by Paul Clapham:
Okay. The second step is to change your configuration like this:To reiterate, your problem is that you want a certain set of classes to send their logs to a certain logger. And there is no meaningful order to those classes. The solution is to not use the class name as the name of the logger. And log4j does not require you to do that. So don't do it.
And yes, you will have to change the code in those classes to write to a particular logger. Again, the code that gets the logger is not required to use the class name as the name of the logger.
Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Originally posted by Paul Clapham:
Recall that when I first answered this question, I said "Try something like one of these". Well, you did. Now try something like the other one.
Success is not doing extraordinary things but doing ordinary things extraordinarily well.
Originally posted by Paul Clapham:
Recall that when I first answered this question, I said "Try something like one of these". Well, you did. Now try something like the other one.
Success is not doing extraordinary things but doing ordinary things extraordinarily well.