@ParametersAreNonnullByDefault
public class PureeLogger
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static interface |
PureeLogger.Consumer<T> |
static class |
PureeLogger.NoRegisteredOutputPluginException |
コンストラクタと説明 |
---|
PureeLogger(java.util.Map<java.lang.Class<?>,java.util.List<PureeOutput>> sourceOutputMap,
com.google.gson.Gson gson,
PureeStorage storage,
java.util.concurrent.ScheduledExecutorService executor) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
discardBufferedLogs() |
void |
flush() |
void |
forEachOutput(PureeLogger.Consumer<PureeOutput> f) |
Records |
getBufferedLogs() |
java.util.concurrent.ScheduledExecutorService |
getExecutor() |
java.util.List<PureeOutput> |
getRegisteredOutputPlugins(java.lang.Class<? extends PureeLog> logClass) |
java.util.List<PureeOutput> |
getRegisteredOutputPlugins(PureeLog log) |
PureeStorage |
getStorage() |
void |
send(PureeLog log) |
com.google.gson.JsonObject |
serializeLog(PureeLog log)
|
void |
truncateBufferedLogs(int truncateThresholdInRows) |
public PureeLogger(java.util.Map<java.lang.Class<?>,java.util.List<PureeOutput>> sourceOutputMap, com.google.gson.Gson gson, PureeStorage storage, java.util.concurrent.ScheduledExecutorService executor)
public void send(PureeLog log)
public PureeStorage getStorage()
public java.util.concurrent.ScheduledExecutorService getExecutor()
public Records getBufferedLogs()
public void discardBufferedLogs()
public void truncateBufferedLogs(int truncateThresholdInRows)
public void flush()
@Nonnull public com.google.gson.JsonObject serializeLog(PureeLog log)
log
- PureeLog
.@Nonnull public java.util.List<PureeOutput> getRegisteredOutputPlugins(PureeLog log)
@Nonnull public java.util.List<PureeOutput> getRegisteredOutputPlugins(java.lang.Class<? extends PureeLog> logClass)
public void forEachOutput(PureeLogger.Consumer<PureeOutput> f)