Trace

This class represents a trace module.

Methods
static String formatParams(ArrayList parameters)
Format the parameter list.
static String formatParams(ArrayList parameters)
Format the parameter list.
Parameters:
parameters - the parameter list
Returns:
the formatted text
void debug(String s, Object... params)
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.
Parameters:
s - the message
params - the parameters
void debug(String s)
Write a message with trace level DEBUG to the trace system.
void debug(String s)
Write a message with trace level DEBUG to the trace system.
Parameters:
s - the message
void debug(Throwable t, String s)
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.
Parameters:
t - the exception
s - the message
void debugCode(String java)
Write Java source code with trace level DEBUG to the trace system.
void debugCode(String java)
Write Java source code with trace level DEBUG to the trace system.
Parameters:
java - the source code
void error(Throwable t, String s)
Write a message with trace level ERROR to the trace system.
void error(Throwable t, String s)
Write a message with trace level ERROR to the trace system.
Parameters:
t - the exception
s - the message
void error(Throwable t, String s, Object... params)
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.
Parameters:
t - the exception
s - the message
params - the parameters
void info(String s)
Write a message with trace level INFO to the trace system.
void info(String s)
Write a message with trace level INFO to the trace system.
Parameters:
s - the message
void info(String s, Object... params)
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.
Parameters:
s - the message
params - the parameters
void info(Throwable t, String s)
Write a message with trace level INFO to the trace system.
void info(Throwable t, String s)
Write a message with trace level INFO to the trace system.
Parameters:
t - the exception
s - the message
void infoCode(String java)
Write Java source code with trace level INFO to the trace system.
void infoCode(String java)
Write Java source code with trace level INFO to the trace system.
Parameters:
java - the source code
void infoSQL(String sql, String params, int count, long time)
Write a SQL statement 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.
Parameters:
sql - the SQL statement
params - the parameters used, in the for {1:...}
count - the update count
time - the time it took to run the statement in ms
boolean isDebugEnabled()
Check if the trace level is equal or higher than DEBUG.
boolean isDebugEnabled()
Check if the trace level is equal or higher than DEBUG.
Returns:
true if it is
boolean isInfoEnabled()
Check if the trace level is equal or higher than INFO.
boolean isInfoEnabled()
Check if the trace level is equal or higher than INFO.
Returns:
true if it is
void setLevel(int level)
Set the trace level of this component.
void setLevel(int level)
Set the trace level of this component. This setting overrides the parent trace level.
Parameters:
level - the new level

Fields
static int COMMAND = 0
static int CONSTRAINT = 1
static int DATABASE = 2
static int FILE_LOCK = 4
static int FUNCTION = 3
static int INDEX = 5
static int JDBC = 6
static int JDBCX = 15
static int LOCK = 7
static String[] MODULE_NAMES
static int PAGE_STORE = 14
static int SCHEMA = 8
static int SEQUENCE = 9
static int SETTING = 10
static int TABLE = 11
static int TRIGGER = 12
static int USER = 13

COMMAND = 0

The trace module id for commands.

CONSTRAINT = 1

The trace module id for constraints.

SETTING = 10

The trace module id for settings.

TABLE = 11

The trace module id for tables.

TRIGGER = 12

The trace module id for triggers.

USER = 13

The trace module id for users.

PAGE_STORE = 14

The trace module id for the page store.

JDBCX = 15

The trace module id for the JDBCX API

DATABASE = 2

The trace module id for databases.

FUNCTION = 3

The trace module id for functions.

FILE_LOCK = 4

The trace module id for file locks.

INDEX = 5

The trace module id for indexes.

JDBC = 6

The trace module id for the JDBC API.

LOCK = 7

The trace module id for locks.

SCHEMA = 8

The trace module id for schemas.

SEQUENCE = 9

The trace module id for sequences.

MODULE_NAMES

Module names by their ids as array indexes.