net.directj.jlogger
Class JDBCLogManager

java.lang.Object
  |
  +--net.directj.jlogger.LogManager
        |
        +--net.directj.jlogger.JDBCLogManager

public class JDBCLogManager
extends LogManager

This class is a DB log manager, with special output and formatter for connecting to a DB.

Version:
0.1.3
Author:
CARTAPANIS Alexandre <earendil@jprolog.net>

Field Summary
 
Fields inherited from class net.directj.jlogger.LogManager
 
Constructor Summary
JDBCLogManager(int _level, java.lang.String _dbURL, java.lang.String _driverName)
          Creates a new LogManager, with the specified logging level.
JDBCLogManager(int _level, java.lang.String _dbURL, java.lang.String _driverName, java.lang.String _dbName, java.lang.String _dbUser, java.lang.String _dbPass, boolean _create)
          Creates a new LogManager, with the specified logging level.
 
Methods inherited from class net.directj.jlogger.LogManager
equals, hashCode, log
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCLogManager

public JDBCLogManager(int _level,
                      java.lang.String _dbURL,
                      java.lang.String _driverName)
Creates a new LogManager, with the specified logging level.

Parameters:
_level - The logging level.
_dbURL - The database url, like 'jdbc:odbc:database'.
_driverName - The name of the class that will be loaded as the DB driver, like 'sun.jdbc.odbc.JdbcOdbcDriver'.

JDBCLogManager

public JDBCLogManager(int _level,
                      java.lang.String _dbURL,
                      java.lang.String _driverName,
                      java.lang.String _dbName,
                      java.lang.String _dbUser,
                      java.lang.String _dbPass,
                      boolean _create)
Creates a new LogManager, with the specified logging level.

Parameters:
_level - The logging level.
_dbURL - The database url, like 'jdbc:odbc:database'.
_driverName - The name of the class that will be loaded as the DB driver, like 'sun.jdbc.odbc.JdbcOdbcDriver'.
_dbName - The name of the table, in the _dbURL DB.
_dbUser - The user name to access the DB.
_dbPass - The user password to access the DB.
_create - Indicate if we create a new table or use an existing one.


Copyright © 2002 CARTAPANIS Alexandre
This page was last updated on May 10 2003