Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Driver#getParentLogger #8

Merged
merged 1 commit into from
Nov 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public class SQLServerDataSource implements ISQLServerDataSource, DataSource, ja
// dsLogger is logger used for all SQLServerDataSource instances.
static final java.util.logging.Logger dsLogger = java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc.internals.SQLServerDataSource");
static final java.util.logging.Logger loggerExternal =
java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc.DataSource");
java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc.DataSource");
static final private java.util.logging.Logger parentLogger =
java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc");
final private String loggingClassName;
private boolean trustStorePasswordStripped = false;
private static final long serialVersionUID = 654861379544314296L;
Expand Down Expand Up @@ -117,8 +119,7 @@ public Logger getParentLogger() throws SQLFeatureNotSupportedException
{
DriverJDBCVersion.checkSupportsJDBC41();

// The driver currently does not implement JDDBC 4.1 APIs
throw new SQLFeatureNotSupportedException(SQLServerException.getErrString("R_notSupported"));
return parentLogger;
}

// Core Connection property setters/getters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,8 @@ final public String toString()
}
static final private java.util.logging.Logger loggerExternal =
java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc.Driver");
static final private java.util.logging.Logger parentLogger =
java.util.logging.Logger.getLogger("com.microsoft.sqlserver.jdbc");
final private String loggingClassName;
String getClassNameLogging()
{
Expand Down Expand Up @@ -1278,8 +1280,7 @@ public int getMinorVersion()
public Logger getParentLogger() throws SQLFeatureNotSupportedException{
DriverJDBCVersion.checkSupportsJDBC41();

// The driver currently does not implement JDDBC 4.1 APIs
throw new SQLFeatureNotSupportedException(SQLServerException.getErrString("R_notSupported"));
return parentLogger;
}

/*L0*/ public boolean jdbcCompliant() {
Expand Down