public final class Properties extends Object
log4jdbc-log4j2
.
They are tried to be read first from a property file in the classpath
(called "log4jdbc.log4j2.properties"), then from the System
properties.
This class has been copied from net.sf.log4jdbc.DriverSpy
developed by Arthur Blake. ALl the properties that were loaded in this class
are now loaded here. Differences as compared to this former implementation:
TrimSql
,
DumpSqlMaxLineLength
, DumpSqlAddSemicolon
,
TrimExtraBlankLinesInSql
, DumpFullDebugStackTrace
,
TraceFromApplication
,
DebugStackPrefix
, DumpSqlFilteringOn
,
DumpSqlSelect
, DumpSqlInsert
, DumpSqlUpdate
,
DumpSqlCreate
, DumpSqlDelete
,
SqlTimingErrorThresholdEnabled
, SqlTimingErrorThresholdMsec
,
SqlTimingWarnThresholdEnabled
, SqlTimingWarnThresholdMsec
,
AutoLoadPopularDrivers
.
SpyLogDelegatorName
, and the corresponding getter,
getSpyLogDelegatorName()
.
Corresponds to the property "log4jdbc.spylogdelegator.name".
Define the class implementing SpyLogDelegator
to load.
Default is net.sf.log4jdbc.log4j2.Log4j2SpyLogDelegator
.
net.sf.log4jdbc.SpyLogFactory
has been modified accordingly.
DebugStackPrefix
is now a String
corresponding to a REGEX,
not only to the beginning of the package name (this can obviously done using "^").
This is true only if log4j2 is used (see SpyLogDelegatorName
),
otherwise it has the standard behavior.
Constructor and Description |
---|
Properties() |
Modifier and Type | Method and Description |
---|---|
static Collection<String> |
getAdditionalDrivers() |
static String |
getDebugStackPrefix() |
static int |
getDumpSqlMaxLineLength() |
static String |
getSpyLogDelegatorName() |
static long |
getSqlTimingErrorThresholdMsec() |
static long |
getSqlTimingWarnThresholdMsec() |
static boolean |
isAutoLoadPopularDrivers() |
static boolean |
isDumpBooleanAsTrueFalse() |
static boolean |
isDumpFullDebugStackTrace() |
static boolean |
isDumpSqlAddSemicolon() |
static boolean |
isDumpSqlCreate() |
static boolean |
isDumpSqlDelete() |
static boolean |
isDumpSqlFilteringOn() |
static boolean |
isDumpSqlInsert() |
static boolean |
isDumpSqlSelect() |
static boolean |
isDumpSqlUpdate() |
static boolean |
isSqlTimingErrorThresholdEnabled() |
static boolean |
isSqlTimingWarnThresholdEnabled() |
static boolean |
isSqlTrim() |
static boolean |
isStatementUsageWarn() |
static boolean |
isSuppressGetGeneratedKeysException() |
static boolean |
isTraceFromApplication() |
static boolean |
isTrimExtraBlankLinesInSql() |
public static String getSpyLogDelegatorName()
SpyLogDelegatorName
public static boolean isSqlTrim()
public static int getDumpSqlMaxLineLength()
public static boolean isDumpSqlAddSemicolon()
public static boolean isTrimExtraBlankLinesInSql()
public static boolean isDumpFullDebugStackTrace()
public static boolean isTraceFromApplication()
public static String getDebugStackPrefix()
public static boolean isDumpSqlFilteringOn()
public static boolean isDumpSqlSelect()
public static boolean isDumpSqlUpdate()
public static boolean isDumpSqlInsert()
public static boolean isDumpSqlDelete()
public static boolean isDumpSqlCreate()
public static boolean isSqlTimingErrorThresholdEnabled()
public static long getSqlTimingErrorThresholdMsec()
public static boolean isSqlTimingWarnThresholdEnabled()
public static long getSqlTimingWarnThresholdMsec()
public static boolean isAutoLoadPopularDrivers()
AutoLoadPopularDrivers
public static Collection<String> getAdditionalDrivers()
AdditionalDrivers
public static boolean isDumpBooleanAsTrueFalse()
DumpBooleanAsTrueFalse
public static boolean isStatementUsageWarn()
StatementUsageWarn
public static boolean isSuppressGetGeneratedKeysException()
SuppressGetGeneratedKeysException
Copyright © 2013 Bgee - Swiss Institute of Bioinformatics. All Rights Reserved.