public class Trace extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COMMAND
The trace module name for commands.
|
static String |
CONSTRAINT
The trace module name for constraints.
|
static String |
DATABASE
The trace module name for databases.
|
static String |
FILE_LOCK
The trace module name for file locks.
|
static String |
FUNCTION
The trace module name for functions.
|
static String |
INDEX
The trace module name for indexes.
|
static String |
JDBC
The trace module name for the JDBC API.
|
static String |
LOCK
The trace module name for locks.
|
static String |
PAGE_STORE
The trace module name for the page store.
|
static String |
SCHEMA
The trace module name for schemas.
|
static String |
SEQUENCE
The trace module name for sequences.
|
static String |
SETTING
The trace module name for settings.
|
static String |
TABLE
The trace module name for tables.
|
static String |
TRIGGER
The trace module name for triggers.
|
static String |
USER
The trace module name for users.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(String s)
Write a message with trace level DEBUG to the trace system.
|
void |
debug(String s,
Object... params)
Write a message with trace level DEBUG to the trace system.
|
void |
debug(Throwable t,
String s)
Write a message with trace level DEBUG to the trace system.
|
void |
error(Throwable t,
String s)
Write a message with trace level ERROR to the trace system.
|
void |
error(Throwable t,
String s,
Object... params)
Write a message with trace level ERROR to the trace system.
|
static String |
formatParams(ArrayList<? extends ParameterInterface> parameters)
Format the parameter list.
|
void |
info(String s)
Write a message with trace level INFO to the trace system.
|
void |
info(String s,
Object... params)
Write a message with trace level INFO to the trace system.
|
void |
infoCode(String java)
Write Java source code with trace level INFO to the trace system.
|
void |
infoSQL(String sql,
String params,
int 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 String COMMAND
public static final String CONSTRAINT
public static final String DATABASE
public static final String FUNCTION
public static final String FILE_LOCK
public static final String INDEX
public static final String JDBC
public static final String LOCK
public static final String SCHEMA
public static final String SEQUENCE
public static final String SETTING
public static final String TABLE
public static final String TRIGGER
public static final String USER
public static final String PAGE_STORE
public void setLevel(int level)
level
- the new levelpublic boolean isInfoEnabled()
public boolean isDebugEnabled()
public void error(Throwable t, String s)
t
- the exceptions
- the messagepublic void error(Throwable t, String s, Object... params)
t
- the exceptions
- the messageparams
- the parameterspublic void info(String s)
s
- the messagepublic void info(String s, Object... params)
s
- the messageparams
- the parameterspublic static String formatParams(ArrayList<? extends ParameterInterface> parameters)
parameters
- the parameter listpublic void infoSQL(String sql, String params, int 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(String s, Object... params)
s
- the messageparams
- the parameterspublic void debug(String s)
s
- the messagepublic void debug(Throwable t, String s)
t
- the exceptions
- the messagepublic void infoCode(String java)
java
- the source codeCopyright © 2012 JBoss by Red Hat. All Rights Reserved.