Skip to content

Commit

Permalink
Ensure Spring LogFactory contains all public methods from Apache LogF…
Browse files Browse the repository at this point in the history
…actory

Closes spring-projectsgh-30668
  • Loading branch information
jhoeller authored and mdeinum committed Jun 29, 2023
1 parent 17c4bc1 commit b997ae4
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -53,8 +53,9 @@ public Log getInstance(String name) {
}


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

@Override
public void setAttribute(String name, Object value) {
if (value != null) {
this.attributes.put(name, value);
Expand All @@ -64,19 +65,19 @@ public void setAttribute(String name, Object value) {
}
}

@Override
public void removeAttribute(String name) {
this.attributes.remove(name);
}

@Override
public Object getAttribute(String name) {
return this.attributes.get(name);
}

@Override
public String[] getAttributeNames() {
return this.attributes.keySet().toArray(new String[0]);
}

public void release() {
}

}

0 comments on commit b997ae4

Please sign in to comment.