com.newrelic.labs.LowercaseKeyMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of custom-log4j2-appender Show documentation
Show all versions of custom-log4j2-appender Show documentation
A custom Log4j2 appender for New Relic.
package com.newrelic.labs;
import java.util.HashMap;
import java.util.Map;
@SuppressWarnings("serial")
public class LowercaseKeyMap extends HashMap {
@Override
public Object put(String key, Object value) {
return super.put(key.toLowerCase(), value);
}
@Override
public void putAll(Map extends String, ? extends Object> m) {
for (Map.Entry extends String, ? extends Object> entry : m.entrySet()) {
this.put(entry.getKey().toLowerCase(), entry.getValue());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy