"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "logback-classic/src/main/java/ch/qos/logback/classic/pattern/PropertyConverter.java" between
logback-1.2.3.tar.gz and logback-v_1.2.7.tar.gz

About: Logback is a generic Logging Framework (intended as a log4j successor).

PropertyConverter.java  (logback-1.2.3):PropertyConverter.java  (logback-v_1.2.7)
skipping to change at line 33 skipping to change at line 33
String key; String key;
public void start() { public void start() {
String optStr = getFirstOption(); String optStr = getFirstOption();
if (optStr != null) { if (optStr != null) {
key = optStr; key = optStr;
super.start(); super.start();
} }
} }
public String getKey() {
return key;
}
public String convert(ILoggingEvent event) { public String convert(ILoggingEvent event) {
if (key == null) { if (key == null) {
return "Property_HAS_NO_KEY"; return "Property_HAS_NO_KEY";
} else { } else {
LoggerContextVO lcvo = event.getLoggerContextVO(); LoggerContextVO lcvo = event.getLoggerContextVO();
Map<String, String> map = lcvo.getPropertyMap(); Map<String, String> map = lcvo.getPropertyMap();
String val = map.get(key); String val = map.get(key);
if (val != null) { if (val != null) {
return val; return val;
} else { } else {
 End of changes. 1 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)