com.avaje.ebean
Interface AdminLogging


public interface AdminLogging

Administrative control over transaction logging at runtime.

Enables an administrator to change the amount of transaction logging that occurs while the application is running.


Nested Class Summary
static class AdminLogging.LogFileSharing
          Defines if transactions share a single log file or each have their own transaction log file.
static class AdminLogging.LogLevel
          The transaction logging level.
static class AdminLogging.LogLevelStmt
          Statement logging level.
static class AdminLogging.LogLevelTxnCommit
          A log level for transaction begin, commit and rollback events.
 
Method Summary
 AdminLogging.LogLevel getLoggingLevel()
          Return the overall transaction logging level.
 AdminLogging.LogLevelStmt getLoggingLevelIud()
          The current log level for inserts updates and deletes.
 AdminLogging.LogLevelStmt getLoggingLevelQuery()
          Return the current log level for queries.
 AdminLogging.LogLevelStmt getLoggingLevelSqlQuery()
          Return the current log level for native sql queries.
 boolean isDebugGeneratedSql()
          Returns true if generated sql is logged to the console.
 boolean isDebugLazyLoad()
          Return true if lazy loading should be debugged.
 void setDebugGeneratedSql(boolean debugSql)
          Set to true to Log generated sql to the console.
 void setDebugLazyLoad(boolean debugLazyLoad)
          Set the debugging on lazy loading.
 void setLoggingLevel(AdminLogging.LogLevel txLogLevel)
          Set the overall transaction logging level.
 void setLoggingLevelIud(AdminLogging.LogLevelStmt updateLevel)
          Set the log level for inserts updates and deletes.
 void setLoggingLevelQuery(AdminLogging.LogLevelStmt sqlQueryLevel)
          Set the log level for queries.
 void setLoggingLevelSqlQuery(AdminLogging.LogLevelStmt sqlQueryLevel)
          Set the log level for native sql queries.
 

Method Detail

setLoggingLevel

void setLoggingLevel(AdminLogging.LogLevel txLogLevel)
Set the overall transaction logging level.


getLoggingLevel

AdminLogging.LogLevel getLoggingLevel()
Return the overall transaction logging level.


getLoggingLevelQuery

AdminLogging.LogLevelStmt getLoggingLevelQuery()
Return the current log level for queries.


setLoggingLevelQuery

void setLoggingLevelQuery(AdminLogging.LogLevelStmt sqlQueryLevel)
Set the log level for queries.


getLoggingLevelSqlQuery

AdminLogging.LogLevelStmt getLoggingLevelSqlQuery()
Return the current log level for native sql queries.


setLoggingLevelSqlQuery

void setLoggingLevelSqlQuery(AdminLogging.LogLevelStmt sqlQueryLevel)
Set the log level for native sql queries.


getLoggingLevelIud

AdminLogging.LogLevelStmt getLoggingLevelIud()
The current log level for inserts updates and deletes.


setLoggingLevelIud

void setLoggingLevelIud(AdminLogging.LogLevelStmt updateLevel)
Set the log level for inserts updates and deletes.


isDebugGeneratedSql

boolean isDebugGeneratedSql()
Returns true if generated sql is logged to the console.


setDebugGeneratedSql

void setDebugGeneratedSql(boolean debugSql)
Set to true to Log generated sql to the console.


isDebugLazyLoad

boolean isDebugLazyLoad()
Return true if lazy loading should be debugged.


setDebugLazyLoad

void setDebugLazyLoad(boolean debugLazyLoad)
Set the debugging on lazy loading.



Copyright © 2010. All Rights Reserved.