public class DuplicatingLog extends AbstractLog
Log implementation that duplicates all messages to other Log instances| Constructor and Description |
|---|
DuplicatingLog(List<Log> logs) |
DuplicatingLog(Log... logs) |
| Modifier and Type | Method and Description |
|---|---|
void |
bulk(Consumer<Log> consumer)
Used to temporarily log several messages in bulk.
|
Logger |
debugLogger() |
Logger |
errorLogger() |
Logger |
infoLogger() |
boolean |
isDebugEnabled() |
boolean |
remove(Log log)
Remove a
Log from the duplicating set |
Logger |
warnLogger() |
public DuplicatingLog(Log... logs)
logs - A list of Log instances that messages should be duplicated topublic boolean remove(Log log)
Log from the duplicating setlog - the Log to be removedpublic boolean isDebugEnabled()
@Nonnull public Logger debugLogger()
Logger instance for writing debug messages@Nonnull public Logger errorLogger()
Logger instance for writing error messagespublic void bulk(@Nonnull Consumer<Log> consumer)
Logconsumer - A consumer for the bulk LogCopyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.