Package com.bw.jtools.log
Class CollectorThreadLogger
- java.lang.Object
-
- com.bw.jtools.log.CollectorThreadLogger
-
public class CollectorThreadLogger extends java.lang.ObjectLogger back-end that collects messages in memory.
Purpose is to collect errors and warnings during some operation to enable the software to give hints about the reason of failure. E.g by providing an detailed error-report about the operation.
It is used byLog.startCollectMessages(int, boolean).
-
-
Field Summary
Fields Modifier and Type Field Description intlevelintmaxTraceLinesjava.util.List<java.lang.String>messages
-
Constructor Summary
Constructors Constructor Description CollectorThreadLogger(int level, int maxTraceLines)Creates a new CollectorLogger.
-