logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <c...@qos.ch>
Subject Re: logging different object instances in different log files
Date Thu, 12 Mar 2009 16:33:00 GMT

Hello Horatiu,

SiftingAppender is prefect for this type of separation. See
http://logback.qos.ch/manual/appenders.html#SiftingAppender for more
information. You would write a custom "discriminator" based on your
business flow object. If you intend to pursue this venue, please
respond on the logback-user mailing list. Do not respond here.


hstanciu wrote:
> Hello!
> I have an object that models a business flow, let's say BizFlowObj(int
> BizFlowNumber).
> I want to log whatever is happening in one flow to one log, and another flow
> in another log (that means I want logging for an instance of a class and the
> classes used by that instance in one log file, and another instance of that
> class in a different file).
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message