Package org.jboss.logmanager
Class LogService
- java.lang.Object
-
- org.jboss.logmanager.LogService
-
public final class LogService extends java.lang.ObjectA simple log service which can be used to remove any bootstrap handlers when a real handler is configured.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.logging.Handler[]bootstrapHandlersprivate static Loggerlogprivate static LoggerrootLogger
-
Constructor Summary
Constructors Constructor Description LogService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate()Create lifecycle method.voiddestroy()Destroy lifecycle method.private static voidsafeClose(java.util.logging.Handler handler)private static voidsafeFlush(java.util.logging.Handler handler)voidstart()Start method; removes and saves bootstrap handlers.voidstop()Stop method; removes root handlers and restores the bootstrap handlers.
-
-
-
Method Detail
-
create
public void create()
Create lifecycle method.
-
start
public void start()
Start method; removes and saves bootstrap handlers.
-
stop
public void stop()
Stop method; removes root handlers and restores the bootstrap handlers.
-
safeFlush
private static void safeFlush(java.util.logging.Handler handler)
-
safeClose
private static void safeClose(java.util.logging.Handler handler)
-
destroy
public void destroy()
Destroy lifecycle method.
-
-