Class Handlers

java.lang.Object
org.jboss.logmanager.handlers.Handlers

public final class Handlers extends Object
Handler utility methods.
  • Constructor Details

    • Handlers

      private Handlers()
  • Method Details

    • wrap

      public static FlushableCloseable wrap(Handler handler)
      Create a wrapper that exposes the handler's close and flush methods via the I/O API.
      Parameters:
      handler - the logging handler
      Returns:
      the wrapper
    • flusher

      public static Runnable flusher(Handler handler)
      Create a Runnable task that flushes a handler.
      Parameters:
      handler - the handler
      Returns:
      a flushing task