クラス LoggerContext.Builder
- java.lang.Object
-
- org.nkjmlab.sorm4j.extension.logger.LoggerContext.Builder
-
- 含まれているクラス:
- LoggerContext
public static class LoggerContext.Builder extends Object
-
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Builder()
-
メソッドの概要
すべてのメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 LoggerContextbuild()voidoff(LoggerContext.Category... categories)Disables logging for the given categories.voidoffAll()Disables logging all categories.voidon(LoggerContext.Category... categories)Enables logging for the given parameter ofLoggerContext.Category.voidonAll()Enables logging all categories.voidsetLoggerSupplier(Supplier<SormLogger> loggerSupplier)
-
-
-
メソッドの詳細
-
setLoggerSupplier
public void setLoggerSupplier(Supplier<SormLogger> loggerSupplier)
-
build
public LoggerContext build()
-
on
public void on(LoggerContext.Category... categories)
Enables logging for the given parameter ofLoggerContext.Category.- パラメータ:
categories- are inLoggerContext.Category
-
off
public void off(LoggerContext.Category... categories)
Disables logging for the given categories.- パラメータ:
categories-
-
onAll
public void onAll()
Enables logging all categories. SeeLoggerContext.Category.
-
offAll
public void offAll()
Disables logging all categories. SeeLoggerContext.Category.
-
-