public final class Trace
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COMMAND
The trace module id for commands.
|
static int |
CONSTRAINT
The trace module id for constraints.
|
static int |
DATABASE
The trace module id for databases.
|
static int |
FILE_LOCK
The trace module id for file locks.
|
static int |
FUNCTION
The trace module id for functions.
|
static int |
INDEX
The trace module id for indexes.
|
static int |
JDBC
The trace module id for the JDBC API.
|
static int |
JDBCX
The trace module id for the JDBCX API
|
static int |
LOCK
The trace module id for locks.
|
static int |
SCHEMA
The trace module id for schemas.
|
static int |
SEQUENCE
The trace module id for sequences.
|
static int |
SETTING
The trace module id for settings.
|
static int |
TABLE
The trace module id for tables.
|
static int |
TRIGGER
The trace module id for triggers.
|
static int |
USER
The trace module id for users.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String s)
Write a message with trace level DEBUG to the trace system.
|
void |
debug(java.lang.String s,
java.lang.Object... params)
Write a message with trace level DEBUG to the trace system.
|
void |
debug(java.lang.Throwable t,
java.lang.String s)
Write a message with trace level DEBUG to the trace system.
|
void |
error(java.lang.Throwable t,
java.lang.String s)
Write a message with trace level ERROR to the trace system.
|
void |
error(java.lang.Throwable t,
java.lang.String s,
java.lang.Object... params)
Write a message with trace level ERROR to the trace system.
|
static java.lang.String |
formatParams(java.util.ArrayList<? extends ParameterInterface> parameters)
Format the parameter list.
|
void |
info(java.lang.String s)
Write a message with trace level INFO to the trace system.
|
void |
info(java.lang.String s,
java.lang.Object... params)
Write a message with trace level INFO to the trace system.
|
void |
infoCode(java.lang.String java)
Write Java source code with trace level INFO to the trace system.
|
void |
infoSQL(java.lang.String sql,
java.lang.String params,
long count,
long time)
Write a SQL statement with trace level INFO to the trace system.
|
boolean |
isDebugEnabled()
Check if the trace level is equal or higher than DEBUG.
|
boolean |
isInfoEnabled()
Check if the trace level is equal or higher than INFO.
|
void |
setLevel(int level)
Set the trace level of this component.
|
public static final int COMMAND
public static final int CONSTRAINT
public static final int DATABASE
public static final int FUNCTION
public static final int FILE_LOCK
public static final int INDEX
public static final int JDBC
public static final int LOCK
public static final int SCHEMA
public static final int SEQUENCE
public static final int SETTING
public static final int TABLE
public static final int TRIGGER
public static final int USER
public static final int JDBCX
public void setLevel(int level)
level
- the new levelpublic boolean isInfoEnabled()
public boolean isDebugEnabled()
public void error(java.lang.Throwable t, java.lang.String s)
t
- the exceptions
- the messagepublic void error(java.lang.Throwable t, java.lang.String s, java.lang.Object... params)
t
- the exceptions
- the messageparams
- the parameterspublic void info(java.lang.String s)
s
- the messagepublic void info(java.lang.String s, java.lang.Object... params)
s
- the messageparams
- the parameterspublic static java.lang.String formatParams(java.util.ArrayList<? extends ParameterInterface> parameters)
parameters
- the parameter listpublic void infoSQL(java.lang.String sql, java.lang.String params, long count, long time)
sql
- the SQL statementparams
- the parameters used, in the for {1:...}count
- the update counttime
- the time it took to run the statement in mspublic void debug(java.lang.String s, java.lang.Object... params)
s
- the messageparams
- the parameterspublic void debug(java.lang.String s)
s
- the messagepublic void debug(java.lang.Throwable t, java.lang.String s)
t
- the exceptions
- the messagepublic void infoCode(java.lang.String java)
java
- the source code