com.p6spy.engine.common
Class P6LogQuery
java.lang.Object
com.p6spy.engine.common.P6LogQuery
- public class P6LogQuery
- extends Object
Method Summary |
static void |
clearLastStack()
|
protected static void |
doLog(int connectionId,
long elapsed,
String category,
String prepared,
String sql)
|
protected static void |
doLog(long elapsed,
String category,
String prepared,
String sql)
|
protected static void |
doLogElapsed(int connectionId,
long startTime,
long endTime,
String category,
String prepared,
String sql)
|
static String[] |
getExcludeTables()
|
static String[] |
getIncludeTables()
|
static String |
getLastEntry()
|
static String |
getLastStack()
|
static void |
initMethod()
|
static boolean |
isDebugOn()
|
static void |
log(String category,
String prepared,
String sql)
|
static void |
logDebug(String sql)
|
static void |
logElapsed(int connectionId,
long startTime,
long endTime,
String category,
String prepared,
String sql)
|
static void |
logElapsed(int connectionId,
long startTime,
String category,
String prepared,
String sql)
|
static void |
logError(String sql)
|
static void |
logInfo(String sql)
|
static PrintStream |
logPrintStream(String file)
|
static void |
logText(String text)
|
static void |
setExcludeCategories(String _excludeCategories)
|
static void |
setExcludeTables(String _excludeTables)
|
static void |
setIncludeCategories(String _includeCategories)
|
static void |
setIncludeTables(String _includeTables)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
qlog
protected static PrintStream qlog
includeTables
protected static String[] includeTables
excludeTables
protected static String[] excludeTables
includeCategories
protected static String[] includeCategories
excludeCategories
protected static String[] excludeCategories
lastStack
protected static String lastStack
logger
protected static P6Logger logger
P6LogQuery
public P6LogQuery()
initMethod
public static void initMethod()
logPrintStream
public static PrintStream logPrintStream(String file)
doLog
protected static void doLog(long elapsed,
String category,
String prepared,
String sql)
doLogElapsed
protected static void doLogElapsed(int connectionId,
long startTime,
long endTime,
String category,
String prepared,
String sql)
doLog
protected static void doLog(int connectionId,
long elapsed,
String category,
String prepared,
String sql)
clearLastStack
public static void clearLastStack()
getLastEntry
public static String getLastEntry()
getLastStack
public static String getLastStack()
getIncludeTables
public static String[] getIncludeTables()
getExcludeTables
public static String[] getExcludeTables()
setIncludeTables
public static void setIncludeTables(String _includeTables)
setExcludeTables
public static void setExcludeTables(String _excludeTables)
setIncludeCategories
public static void setIncludeCategories(String _includeCategories)
setExcludeCategories
public static void setExcludeCategories(String _excludeCategories)
logText
public static void logText(String text)
log
public static void log(String category,
String prepared,
String sql)
logElapsed
public static void logElapsed(int connectionId,
long startTime,
String category,
String prepared,
String sql)
logElapsed
public static void logElapsed(int connectionId,
long startTime,
long endTime,
String category,
String prepared,
String sql)
logInfo
public static void logInfo(String sql)
isDebugOn
public static boolean isDebugOn()
logDebug
public static void logDebug(String sql)
logError
public static void logError(String sql)