Class CollectorThreadLogger


  • public class CollectorThreadLogger
    extends java.lang.Object
    Logger 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 by Log.startCollectMessages(int, boolean).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int level  
      int maxTraceLines  
      java.util.List<java.lang.String> messages  
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectorThreadLogger​(int level, int maxTraceLines)
      Creates a new CollectorLogger.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • messages

        public java.util.List<java.lang.String> messages
      • level

        public final int level
      • maxTraceLines

        public final int maxTraceLines
    • Constructor Detail

      • CollectorThreadLogger

        public CollectorThreadLogger​(int level,
                                     int maxTraceLines)
        Creates a new CollectorLogger.
        Parameters:
        level - Level to restrict the collected messages to.
        maxTraceLines - Maximum number of lines in stack-traces.