A possible solution for # 1:
- implement your own logger. Override the various error/warn/etc
methods
- use contextual info(utilizing MDC) to identify which log files
that entries need to be dumped in
- the context info can contain an 'object id' identifying the
specific object, on which the log
Howdy,
2. Is it possible to associated a log file to an INSTANCE of an object?
I
have object which does quite complex things and which is constructed
with
an Id. I would like to associate one log file per instance, such as
log-id1
and log-id2 if I do new ComplexObject(id1); and new