public class JDBCLogger extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEBUG_MAX_ARRAY |
static int |
DEBUG_MAX_STRING |
String |
instance |
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
JDBCLogger(String instance) |
Modifier and Type | Method and Description |
---|---|
void |
error(String message) |
void |
error(String message,
Throwable t) |
String |
formatMessage(String message) |
void |
info(String message) |
boolean |
isLogEnabled() |
void |
log(String message) |
void |
logCount(int count) |
void |
logCounts(int[] counts) |
static String |
loggedValue(Object value)
Returns a loggable value using pseudo-SQL syntax.
|
void |
logIds(List<Serializable> ids,
boolean countTotal,
long totalSize) |
void |
logMap(Map<String,Serializable> map) |
void |
logResultSet(ResultSet rs,
List<Column> columns) |
void |
logSQL(String sql,
Collection<Serializable> values) |
void |
logSQL(String sql,
List<Column> columns,
Row row) |
void |
logSQL(String sql,
List<Column> columns,
Row row,
Set<String> deltas) |
void |
warn(String message) |
public static final org.apache.commons.logging.Log log
public static final int DEBUG_MAX_STRING
public static final int DEBUG_MAX_ARRAY
public final String instance
public JDBCLogger(String instance)
public boolean isLogEnabled()
public void error(String message)
public void warn(String message)
public void info(String message)
public void log(String message)
public void logCount(int count)
public void logCounts(int[] counts)
public void logResultSet(ResultSet rs, List<Column> columns) throws SQLException
SQLException
public void logMap(Map<String,Serializable> map) throws SQLException
SQLException
public void logIds(List<Serializable> ids, boolean countTotal, long totalSize)
public void logSQL(String sql, Collection<Serializable> values)
Copyright © 2015 Nuxeo SA. All rights reserved.