|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.LogConfiguration
public class LogConfiguration
Encapsulates the trace logging configuration specified for an ODA run-time driver.
Constructor Summary | |
---|---|
LogConfiguration(int logLevel,
java.lang.String logDirectory,
java.lang.String logPrefix,
java.lang.String formatterClassName)
Constructor to set the trace logging configuration of the ODA runtime driver for all data source types supported by the IDriver. |
|
LogConfiguration(java.lang.String dataSourceId,
int logLevel,
java.lang.String logDirectory,
java.lang.String logPrefix,
java.lang.String formatterClassName)
Constructor to set the trace logging configuration of the ODA runtime driver for the given type of data source and its runtime connection(s). |
Method Summary | |
---|---|
java.lang.String |
getDataSourceId()
Returns the id of a type of data source to apply the logging configuration. |
java.lang.String |
getFormatterClassName()
Returns the fully qualified class name of a LogFormatter implementation class,
suitable for use by the driver-specific logging utility. |
java.lang.String |
getLogDirectory()
Returns the absolute path of the log directory. |
int |
getLogLevel()
Returns the level of information to log. |
java.lang.String |
getLogPrefix()
Returns the prefix used in the log file name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogConfiguration(java.lang.String dataSourceId, int logLevel, java.lang.String logDirectory, java.lang.String logPrefix, java.lang.String formatterClassName)
dataSourceId
- The id of a type of data source to apply
the logging configuration.
A null or empty String means to apply to all
data source types supported by this IDriver.logLevel
- The level of information to log. The value of a
log level is implementation dependent of the Logger
used.logDirectory
- The absolute path of the log directory.logPrefix
- The prefix used in the log file name. For example,
it could be used in the log file format:
<logPrefix>-YYYYMMDD-hhmmss.log, but its usage
is implementation dependent.formatterClassName
- The fully qualified class name of a
LogFormatter
implementation class.public LogConfiguration(int logLevel, java.lang.String logDirectory, java.lang.String logPrefix, java.lang.String formatterClassName)
Method Detail |
---|
public java.lang.String getDataSourceId()
public java.lang.String getFormatterClassName()
LogFormatter
implementation class,
suitable for use by the driver-specific logging utility.
public java.lang.String getLogDirectory()
public int getLogLevel()
public java.lang.String getLogPrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |