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) |
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 |
logMaps(List<Map<String,Serializable>> maps,
boolean countTotal,
long totalSize) |
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,
List<Column> whereColumns,
Map<String,Serializable> conditions) |
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 JDBCLogger(String instance)
public boolean isLogEnabled()
public String formatMessage(String message)
public void logCount(int count)
public void logResultSet(ResultSet rs, List<Column> columns) throws SQLException
SQLException
public void logMap(Map<String,Serializable> map) throws SQLException
SQLException
public void logMaps(List<Map<String,Serializable>> maps, boolean countTotal, long totalSize)
public void logIds(List<Serializable> ids, boolean countTotal, long totalSize)
public void logSQL(String sql, List<Column> columns, Row row, List<Column> whereColumns, Map<String,Serializable> conditions)
public void logSQL(String sql, Collection<Serializable> values)
public static String loggedValue(Object value)
Copyright © 2017 Nuxeo. All rights reserved.