Class CmsDuplicateRemovingLogBuffer

java.lang.Object
org.opencms.main.CmsDuplicateRemovingLogBuffer

Class used to collect log messages and later write them to the actual log but with duplicates removed.
  • Constructor Details

  • Method Details

    • add

      public void add(String channel, String level, 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.