|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to represent interaction with a physical log. All messages logged are filtered by verbosityLevel.
Messages higher than verbosityLevel are ignored, and not written.
| Method Summary | |
java.lang.String |
getLogFileName()
Returns filename for this log. |
java.lang.String |
getLogName()
Returns the name used to register this log. |
LogService.Verbosity |
getVerbosityLevel()
Returns the verbosity level for this log. |
void |
log(java.lang.String message,
LogService.Verbosity verbosity)
Logs the specified message at the appropriate verbosity. |
void |
log(java.lang.String message,
java.lang.Throwable error,
LogService.Verbosity verbosity)
Logs the specified message at the appropriate verbosity. |
void |
logDebug(java.lang.String message)
Logs the specified message at the "debug" level. |
void |
logDebug(java.lang.String message,
java.lang.Throwable error)
Logs the specified message at the "debug" level. |
void |
logError(java.lang.String message)
Logs the specified message at the "error" level. |
void |
logError(java.lang.String message,
java.lang.Throwable error)
Logs the specified message at the "error" level. |
void |
logFatal(java.lang.String message)
Logs specified message at "fatal" level |
void |
logFatal(java.lang.String message,
java.lang.Throwable error)
Logs the specified message at the "fatal" level. |
void |
logInfo(java.lang.String message)
Logs the specified message at the "info" level. |
void |
logInfo(java.lang.String message,
java.lang.Throwable error)
Logs the specified message at the "info" level. |
void |
logSqlWarnings(java.sql.Connection con)
Logs output associated with the SQLWarnings associated with the specified Connection. |
void |
logSqlWarnings(java.sql.Connection con,
java.sql.Statement stmt,
java.sql.ResultSet results)
Logs output associated with the SQLWarnings associated with the Connection, Statement and ResultSet. |
void |
logSqlWarnings(java.sql.ResultSet results)
Logs output associated with the SQLWarnings associated with the specified ResultSet. |
void |
logSqlWarnings(java.sql.Statement stmt)
Logs output associated with the SQLWarnings associated with the specified Statement. |
void |
logSqlWarnings(java.lang.String message,
java.sql.SQLWarning errors)
Logs the specified message, and attaches output associated with the specified SQLWarning. |
void |
logWarning(java.lang.String message)
Logs the specified message at the "warning" level. |
void |
logWarning(java.lang.String message,
java.lang.Throwable error)
Logs the specified message at the "warning" level. |
void |
setVerbosityLevel(LogService.Verbosity verbosity)
Sets the verbosity level for this log. |
| Method Detail |
public java.lang.String getLogFileName()
public java.lang.String getLogName()
public void setVerbosityLevel(LogService.Verbosity verbosity)
verbosity - Verbosity level.public LogService.Verbosity getVerbosityLevel()
public void log(java.lang.String message,
LogService.Verbosity verbosity)
getVerbosityLevel()
will not be written.
message - Message to logverbosity - Verbosity for this message.
public void log(java.lang.String message,
java.lang.Throwable error,
LogService.Verbosity verbosity)
getVerbosityLevel()
will not be written.
message - Message to logerror - Exception or Throwable that caused this message to be logged.verbosity - Verbosity for this messagepublic void logFatal(java.lang.String message)
message - Message to log
public void logFatal(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagepublic void logError(java.lang.String message)
message - Message to log
public void logError(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagepublic void logWarning(java.lang.String message)
message - Message to log
public void logWarning(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagepublic void logInfo(java.lang.String message)
message - Message to log
public void logInfo(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagepublic void logDebug(java.lang.String message)
message - Message to log
public void logDebug(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this message
public void logSqlWarnings(java.lang.String message,
java.sql.SQLWarning errors)
throws java.sql.SQLException
message - Message to logerrors - SQLWarnings associated with this message
java.sql.SQLException
public void logSqlWarnings(java.sql.ResultSet results)
throws java.sql.SQLException
results - ResultSet containing warnings
java.sql.SQLException
public void logSqlWarnings(java.sql.Connection con)
throws java.sql.SQLException
con - Connection containing warnings
java.sql.SQLException
public void logSqlWarnings(java.sql.Connection con,
java.sql.Statement stmt,
java.sql.ResultSet results)
throws java.sql.SQLException
con - Connection containing warningsstmt - Statementresults - ResultSet containing warnings
java.sql.SQLException
public void logSqlWarnings(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement containing warnings
java.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||