Skip to content

Commit

Permalink
Ensure Spring LogFactory contains all public methods from Apache `L…
Browse files Browse the repository at this point in the history
…ogFactory` (#30668)
  • Loading branch information
maartenc committed Jun 21, 2023
1 parent f1fb8cf commit 2445766
Showing 1 changed file with 27 additions and 0 deletions.
Expand Up @@ -102,4 +102,31 @@ public Log getInstance(String name) {
return getLog(name);
}

// Just in case some code happens to call uncommon Commons Logging methods...

@Deprecated
public Object getAttribute(String name) {
return null;
}

@Deprecated
public String[] getAttributeNames() {
return new String[0];
}

@Deprecated
public void removeAttribute(String name) {
// do nothing
}

@Deprecated
public void setAttribute(String name, Object value) {
// do nothing
}

@Deprecated
public void release() {
// do nothing
}

}

0 comments on commit 2445766

Please sign in to comment.