public class DuplicatingLog extends AbstractLog
Log
implementation that duplicates all messages to other Log instancesConstructor 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)
Log
consumer
- A consumer for the bulk Log
Copyright © 2023. All rights reserved.