|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Log
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. |
boolean |
isDebugEnabled()
Indicates whether debug logging is enabled. |
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 |
logAudit(java.lang.String message)
Logs the specified message at the "audit" level. |
void |
logAudit(java.lang.String message,
java.lang.Throwable error)
Logs the specified message at the "audit" level. |
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 |
|---|
java.lang.String getLogFileName()
java.lang.String getLogName()
void setVerbosityLevel(LogService.Verbosity verbosity)
verbosity - Verbosity level.LogService.Verbosity getVerbosityLevel()
void log(java.lang.String message,
LogService.Verbosity verbosity)
getVerbosityLevel()
will not be written.
message - Message to logverbosity - Verbosity for this message.
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 messagevoid logFatal(java.lang.String message)
message - Message to log
void logFatal(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagevoid logError(java.lang.String message)
message - Message to log
void logError(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagevoid logWarning(java.lang.String message)
message - Message to log
void logWarning(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagevoid logInfo(java.lang.String message)
message - Message to log
void logInfo(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagevoid logDebug(java.lang.String message)
message - Message to log
void logDebug(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this messagevoid logAudit(java.lang.String message)
message - Message to log
void logAudit(java.lang.String message,
java.lang.Throwable error)
message - Message to logerror - Exception or Throwable to associate with this message
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
void logSqlWarnings(java.sql.ResultSet results)
throws java.sql.SQLException
results - ResultSet containing warnings
java.sql.SQLException
void logSqlWarnings(java.sql.Connection con)
throws java.sql.SQLException
con - Connection containing warnings
java.sql.SQLException
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
void logSqlWarnings(java.sql.Statement stmt)
throws java.sql.SQLException
stmt - Statement containing warnings
java.sql.SQLExceptionboolean isDebugEnabled()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||