Package net.orbyfied.j8.util.logging
Class LogHandler
java.lang.Object
net.orbyfied.j8.util.logging.LogHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandler actionstatic enumPriority enum. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Stringprotected LogHandler.Priority -
Constructor Summary
ConstructorsConstructorDescriptionLogHandler(String name) LogHandler(String name, LogHandler.Priority priority) LogHandler(LogHandler.Priority priority) -
Method Summary
Modifier and TypeMethodDescriptionasync(boolean b) protected abstract voidhandle(LogPipeline pipeline, LogRecord record) Called by a pipeline when an event (LogRecord) needs to be handled.booleanisAsync()name()static LogHandlerof(String name, LogHandler.Action action) static LogHandlerof(String name, LogHandler.Priority priority, LogHandler.Action action) static LogHandlerof(LogHandler.Action action) prioritized(LogHandler.Priority priority) priority()
-
Field Details
-
priority
-
name
-
async
protected boolean async
-
-
Constructor Details
-
LogHandler
public LogHandler() -
LogHandler
-
LogHandler
-
LogHandler
-
-
Method Details
-
of
-
of
-
of
-
isAsync
public boolean isAsync() -
name
-
priority
-
async
-
named
-
prioritized
-
handle
Called by a pipeline when an event (LogRecord) needs to be handled.- Parameters:
pipeline- The pipeline.record- The event.
-