public static class PureeConfiguration.Builder
extends java.lang.Object
コンストラクタと説明 |
---|
Builder(android.content.Context context)
Start building a new
PureeConfiguration instance. |
修飾子とタイプ | メソッドと説明 |
---|---|
PureeConfiguration |
build()
Create the
PureeConfiguration instance. |
PureeConfiguration.Builder |
executor(java.util.concurrent.ScheduledExecutorService executor) |
PureeConfiguration.Builder |
gson(com.google.gson.Gson gson)
Specify the
Gson to serialize logs. |
PureeConfiguration.Builder |
register(java.lang.Class<?> logClass,
PureeOutput output) |
Source |
source(java.lang.Class<? extends PureeLog> logClass)
Specify a source class of logs, which returns
Source an
Source.to(PureeOutput) must be called to register an output plugin. |
PureeConfiguration.Builder |
storage(PureeStorage storage) |
public Builder(android.content.Context context)
PureeConfiguration
instance.context
- Context
.public PureeConfiguration.Builder gson(com.google.gson.Gson gson)
Gson
to serialize logs.gson
- Gson
.PureeConfiguration.Builder
.public Source source(java.lang.Class<? extends PureeLog> logClass)
Source
an
Source.to(PureeOutput)
must be called to register an output plugin.logClass
- log class.Source
.public PureeConfiguration.Builder register(java.lang.Class<?> logClass, PureeOutput output)
public PureeConfiguration.Builder storage(PureeStorage storage)
public PureeConfiguration.Builder executor(java.util.concurrent.ScheduledExecutorService executor)
public PureeConfiguration build()
PureeConfiguration
instance.PureeConfiguration
.