java.lang.Object
io.jstach.rainbowgum.LogAppender.Appenders
- Enclosing interface:
LogAppender
Provides appenders safely to the publisher. The providing calls of
asXXX
can only be called once as they register the appenders.-
Method Summary
Modifier and TypeMethodDescriptionList
<? extends LogAppender> asList()
Return the appenders as a list.asSingle()
Consolidate the appenders as a single appender.flags
(Set<LogAppender.AppenderFlag> flags) Sets flags for the appenders which should be done prior toasXXX
.
-
Method Details
-
flags
Sets flags for the appenders which should be done prior toasXXX
.- Parameters:
flags
- appender flags.- Returns:
- this;
-
asList
Return the appenders as a list.- Returns:
- list of appenders.
- Throws:
IllegalStateException
- if appenders are already registered.
-
asSingle
Consolidate the appenders as a single appender. The appenders will be appended synchronously and will share the same lock.- Returns:
- single appender.
- Throws:
IllegalStateException
- if appenders are already registered.
-