Class DenseConsoleController

java.lang.Object
java.util.logging.Handler
java.util.logging.StreamHandler
java.util.logging.ConsoleHandler
com.clumd.projects.java_custom_logging.logging.controllers.DenseConsoleController
All Implemented Interfaces:
CustomLogHandler

public class DenseConsoleController extends ConsoleHandler implements CustomLogHandler
  • Field Details

    • denseConsoleDateTimeFormatter

      public final SimpleDateFormat denseConsoleDateTimeFormatter
  • Constructor Details

    • DenseConsoleController

      public DenseConsoleController()
  • Method Details

    • acceptLogRootRefs

      public void acceptLogRootRefs(@NonNull @NonNull UUID specificRunID, @NonNull @NonNull String systemID, @NonNull @NonNull Map<Long,String> overriddenThreadNames)
      Description copied from interface: CustomLogHandler
      A method to act as an initialiser for any Custom Log Controller
      Specified by:
      acceptLogRootRefs in interface CustomLogHandler
      Parameters:
      specificRunID - A unique identifier for any given specific 'run' of the system.
      systemID - An identifier for the hostname of the hardware running this instance.
      overriddenThreadNames - A map between ThreadIDs and their human-readable names, perhaps describing what they do.
    • isLoggable

      public boolean isLoggable(LogRecord logRecord)
      Overrides:
      isLoggable in class StreamHandler
    • setFormatter

      public void setFormatter(Formatter newFormatter) throws SecurityException
      Overrides:
      setFormatter in class Handler
      Throws:
      SecurityException