aboutsummaryrefslogtreecommitdiffstats
path: root/docs/02_usage.mkd
diff options
context:
space:
mode:
authorJames Moger <james.moger@gmail.com>2011-08-17 13:30:40 -0400
committerJames Moger <james.moger@gmail.com>2011-08-17 13:30:40 -0400
commit05429c2cdf393730f17fb8fa51ee4b9e58e0a88f (patch)
tree1c6e98a2913b4f0912318e49f72f930b985eb345 /docs/02_usage.mkd
parent1734dc44d70391aeef26cacdf4d9f07c289e476e (diff)
downloadiciql-05429c2cdf393730f17fb8fa51ee4b9e58e0a88f.tar.gz
iciql-05429c2cdf393730f17fb8fa51ee4b9e58e0a88f.zip
Renamed logger. Improved test suite. Added Apache Commons and DBCP.v0.7.0
Diffstat (limited to 'docs/02_usage.mkd')
-rw-r--r--docs/02_usage.mkd20
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/02_usage.mkd b/docs/02_usage.mkd
index 31dbfb6..14619f2 100644
--- a/docs/02_usage.mkd
+++ b/docs/02_usage.mkd
@@ -97,33 +97,33 @@ Iciql does not throw any [checked exceptions](http://en.wikipedia.org/wiki/Excep
### Statement Logging
-Iciql provides a mechanism to log generated statements to the console, to SLF4J, or to your own logging framework. Exceptions are not logged using this mechanism; exceptions are wrapped and rethrown as `IciqlException`, which is a RuntimeException.
+Iciql provides a mechanism to log generated statements and warnings to the console, to SLF4J, or to your own logging framework. Exceptions are not logged using this mechanism; exceptions are wrapped and rethrown as `IciqlException`, which is a RuntimeException.
#### Console Logging
%BEGINCODE%
-StatmentLogger.activeConsoleLogger();
-StatmentLogger.deactiveConsoleLogger();
+IciqlLogger.activeConsoleLogger();
+IciqlLogger.deactiveConsoleLogger();
%ENDCODE%
#### SLF4J Logging
%BEGINCODE%
-Slf4jStatementListener slf4j = new Slf4jStatementListener();
+Slf4jIciqlListener slf4j = new Slf4jIciqlListener();
slf4j.setLevel(StatementType.CREATE, Level.WARN);
slf4j.setLevel(StatementType.DELETE, Level.WARN);
slf4j.setLevel(StatementType.MERGE, Level.OFF);
-StatmentLogger.registerListener(slf4j);
-StatmentLogger.unregisterListener(slf4j);
+IciqlLogger.registerListener(slf4j);
+IciqlLogger.unregisterListener(slf4j);
%ENDCODE%
#### Custom Logging
%BEGINCODE%
-StatementListener custom = new StatementListener() {
- public void logStatement(StatementType type, String statement) {
+IciqlListener custom = new IciqlListener() {
+ public void logIciql(StatementType type, String statement) {
// do log
}
};
-StatmentLogger.registerListener(custom);
-StatmentLogger.unregisterListener(custom);
+IciqlLogger.registerListener(custom);
+IciqlLogger.unregisterListener(custom);
%ENDCODE%
## Understanding Aliases and Model Classes