クラス LoggerContext
- java.lang.Object
-
- org.nkjmlab.sorm4j.util.logger.LoggerContext
-
public final class LoggerContext extends Object
Logger for Sorm4j.- 作成者:
- nkjm
-
-
ネストされたクラスの概要
ネストされたクラス 修飾子とタイプ クラス 説明 static classLoggerContext.Builderstatic classLoggerContext.CategoryCategories ofLoggerContext.static classLoggerContext.LogPoint
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 booleanforceLogging
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 LoggerContext(Supplier<SormLogger> loggerSupplier, Set<LoggerContext.Category> onCategories)
-
メソッドの概要
すべてのメソッド staticメソッド インスタンス・メソッド concreteメソッド 修飾子とタイプ メソッド 説明 static LoggerContext.Builderbuilder()Optional<LoggerContext.LogPoint>createLogPoint(LoggerContext.Category category, Class<?> callerClass)Optional<LoggerContext.LogPoint>createLogPointBeforeSql(LoggerContext.Category category, Class<?> clazz, Connection connection, String sql, Object... parameters)SormLoggergetLogger(Class<?> clazz)booleanisLogging(LoggerContext.Category category)StringtoString()
-
-
-
コンストラクタの詳細
-
LoggerContext
public LoggerContext(Supplier<SormLogger> loggerSupplier, Set<LoggerContext.Category> onCategories)
-
-
メソッドの詳細
-
getLogger
public SormLogger getLogger(Class<?> clazz)
-
createLogPointBeforeSql
public Optional<LoggerContext.LogPoint> createLogPointBeforeSql(LoggerContext.Category category, Class<?> clazz, Connection connection, String sql, Object... parameters)
-
createLogPoint
public Optional<LoggerContext.LogPoint> createLogPoint(LoggerContext.Category category, Class<?> callerClass)
-
isLogging
public boolean isLogging(LoggerContext.Category category)
-
builder
public static LoggerContext.Builder builder()
-
-