Package org.jboss.logmanager.handlers
Class Handlers
- java.lang.Object
-
- org.jboss.logmanager.handlers.Handlers
-
public final class Handlers extends Object
Handler utility methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Runnable
flusher(Handler handler)
Create aRunnable
task that flushes a handler.static FlushableCloseable
wrap(Handler handler)
Create a wrapper that exposes the handler's close and flush methods via the I/O API.
-
-
-
Method Detail
-
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
-
-