Package org.soulwing.jdbc.logger
Interface JdbcLogger
-
- All Known Implementing Classes:
FormattingJdbcLogger
,JclJdbcLogger
,JuliJdbcLogger
,Log4j2JdbcLogger
,NullJdbcLogger
,PrintWriterJdbcLogger
,Slf4jJdbcLogger
public interface JdbcLogger
A simplified log writer interface for logging SQL statements and bound parameter values.An implementation of this class typically delegates to a logging framework.
- Author:
- Carl Harris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeParameters(Parameter[] parameters)
Writes the parameters that will be bound for an SQL statement.void
writeStatement(String sql)
Writes the text of an SQL statement to the log.
-
-
-
Method Detail
-
writeStatement
void writeStatement(String sql)
Writes the text of an SQL statement to the log.- Parameters:
sql
- the SQL statement text to write
-
writeParameters
void writeParameters(Parameter[] parameters)
Writes the parameters that will be bound for an SQL statement.This method is invoked immediately after
writeStatement(String)
to log the actual parameter values that will be used to replace statement placeholders.An implementation should check the configuration of the underlying log system as to whether this level of detail is enabled.
- Parameters:
parameters
- values that will be bound before statement execution
-
-