Class CmsDuplicateRemovingLogBuffer


  • public class CmsDuplicateRemovingLogBuffer
    extends java.lang.Object
    Class used to collect log messages and later write them to the actual log but with duplicates removed.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String channel, java.lang.String level, java.lang.String message)
      Adds a new log entry.
      void flush()
      Dumps all collected log entries to their respective logs, with duplicates removed.
      • Methods inherited from class java.lang.Object

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

      • add

        public void add​(java.lang.String channel,
                        java.lang.String level,
                        java.lang.String message)
        Adds a new log entry.
        Parameters:
        channel - the log channel
        level - the log level
        message - the log message
      • flush

        public void flush()
        Dumps all collected log entries to their respective logs, with duplicates removed.

        Also clears the set of collected log entries.