|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecte4s.util.E4Object
e4s.db.E4DBLogging
public class E4DBLogging
Logging for database SQL access.
SQL statements (reading or writing) can be traced into a log file, including the
client and the duration time. The system settings (E4DBSettings will
define if and which kind of SQL statements will be logged.
| Field Summary | |
|---|---|
static java.lang.String |
FLAG_ERROR
|
static java.lang.String |
FLAG_READ
|
static java.lang.String |
FLAG_TEXT
|
static java.lang.String |
FLAG_WRITE
|
static int |
LOGGING_AUTO
|
static int |
LOGGING_NO
|
static int |
LOGGING_YES
|
static boolean |
m_init
|
static boolean |
m_log_reading_sql
|
static boolean |
m_log_writing_sql
|
| Fields inherited from class e4s.util.E4Object |
|---|
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET |
| Constructor Summary | |
|---|---|
E4DBLogging()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
_getSVNVersionString()
|
static void |
closeLogfile()
Close the current logfile. |
static java.lang.String |
EscapeCR(java.lang.String s)
|
void |
finalize()
Close logfile on any destroy. |
static boolean |
isReading()
Get the status for logging of reading SQL statements. |
static boolean |
isWriting()
Get the status for logging of writing SQL statements. |
static void |
log(java.lang.String txt)
|
static void |
logError(E4ApplObj_Intf applobj,
E4DBConnection_Intf con,
java.lang.String sql,
java.lang.Throwable thrw)
Write an error to the the logfile. |
static void |
logError(E4Client client,
E4DBConnection_Intf con,
java.lang.String sql,
java.lang.Throwable thrw)
Write an error to the the logfile. |
static void |
logError(java.lang.String txt,
java.lang.Throwable thrw)
Write an error to the the logfile. |
static void |
logReading(E4ApplObj_Intf applobj,
E4DBConnection_Intf con,
long timer,
java.lang.String sql)
Write an [reading-]SQL statement to the logfile. |
static void |
logReading(E4Client client,
E4DBConnection_Intf con,
long timer,
java.lang.String sql)
Write an [reading-]SQL statement to the logfile. |
static void |
logWriting(E4ApplObj_Intf applobj,
E4DBConnection_Intf con,
long timer,
java.lang.String sql)
Write an [writing-]SQL statement to the logfile. |
static void |
logWriting(E4Client client,
E4DBConnection_Intf con,
long time,
java.lang.String sql)
Write an [reading-]SQL statement to the logfile. |
static void |
logWriting(E4DBConnection_Intf con,
long timer,
java.lang.String sql)
Write an [writing-]SQL statement to the logfile. |
| Methods inherited from class e4s.util.E4Object |
|---|
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean m_log_reading_sql
public static boolean m_log_writing_sql
public static boolean m_init
public static final java.lang.String FLAG_READ
public static final java.lang.String FLAG_WRITE
public static final java.lang.String FLAG_ERROR
public static final java.lang.String FLAG_TEXT
public static final int LOGGING_AUTO
public static final int LOGGING_YES
public static final int LOGGING_NO
| Constructor Detail |
|---|
public E4DBLogging()
| Method Detail |
|---|
public static void logReading(E4ApplObj_Intf applobj,
E4DBConnection_Intf con,
long timer,
java.lang.String sql)
applobj - the application object, containing information about the usertimer - the time when the SQL execution has been startedsql - the SQL statementlogWriting(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logError(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, java.lang.String, java.lang.Throwable),
E4DBSettings.getLoggingPath(),
E4DBSettings.getLoggingMode()
public static void logWriting(E4ApplObj_Intf applobj,
E4DBConnection_Intf con,
long timer,
java.lang.String sql)
applobj - the application object, containing information about the usertimer - the time when the SQL execution has been startedsql - the SQL statementlogReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logError(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, java.lang.String, java.lang.Throwable),
E4DBSettings.getLoggingPath(),
E4DBSettings.getLoggingMode()
public static void logWriting(E4DBConnection_Intf con,
long timer,
java.lang.String sql)
timer - the time when the SQL execution has been startedsql - the SQL statementlogReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logError(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, java.lang.String, java.lang.Throwable),
E4DBSettings.getLoggingPath(),
E4DBSettings.getLoggingMode()
public static void logReading(E4Client client,
E4DBConnection_Intf con,
long timer,
java.lang.String sql)
client - is the current clienttimer - the time when the SQL execution has been startedsql - the SQL statementlogWriting(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logError(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, java.lang.String, java.lang.Throwable),
E4DBSettings.getLoggingMode()
public static void logWriting(E4Client client,
E4DBConnection_Intf con,
long time,
java.lang.String sql)
client - is the current clienttimer - the time when the SQL execution has been startedsql - the SQL statementlogWriting(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logError(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, java.lang.String, java.lang.Throwable),
E4DBSettings.getLoggingPath(),
E4DBSettings.getLoggingMode()public static void log(java.lang.String txt)
public static void logError(E4ApplObj_Intf applobj,
E4DBConnection_Intf con,
java.lang.String sql,
java.lang.Throwable thrw)
applobj - the application object, containing information about the usersql - the SQL statementthrw - the ThrowablelogWriting(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
E4DBSettings.getLoggingPath()
public static void logError(E4Client client,
E4DBConnection_Intf con,
java.lang.String sql,
java.lang.Throwable thrw)
client - is the current clientsql - the SQL statementthrw - the ThrowablelogWriting(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
E4DBSettings.getLoggingPath()
public static void logError(java.lang.String txt,
java.lang.Throwable thrw)
sql - the SQL statementthrw - the ThrowablelogWriting(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
logReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String),
E4DBSettings.getLoggingPath()public static boolean isReading()
logReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String)public static boolean isWriting()
logReading(e4s.application.E4ApplObj_Intf, e4s.db.E4DBConnection_Intf, long, java.lang.String)public static void closeLogfile()
E4DBSettings.getLoggingPath() is defined.
public void finalize()
finalize in class E4Objectpublic static java.lang.String EscapeCR(java.lang.String s)
public static java.lang.String _getSVNVersionString()
|
www.element4solution.com | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||