Skip to content

Commit 9506344

Browse files
FIx typo and formatting
1 parent 24a7195 commit 9506344

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cf-java-logging-support-logback/src/main/java/com/sap/hcp/cf/logback/converter/CustomFieldsConverter.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
* key/value pairs stored in {@link CustomField} instances which have been
1515
* passed as arguments.
1616
* <p>
17-
* We allow to types of addition to a log message, either <i>embedded</i>, i.e.
18-
* the key/value pairs appear as a list of JSON fields in the message, or as a
19-
* nested object where the field name has been specified as an option to this
20-
* converter.
17+
* We allow two types of additions to a log message, either <i>embedded</i>,
18+
* i.e. the key/value pairs appear as a list of JSON fields in the message, or
19+
* as a nested object where the field name has been specified as an option to
20+
* this converter.
2121
*/
2222

2323
public class CustomFieldsConverter extends ClassicConverter {
@@ -42,8 +42,8 @@ public String convert(ILoggingEvent event) {
4242
Map<String, String> mdcCustomFields = getMdcCustomFields(event);
4343
StringBuilder appendTo = new StringBuilder();
4444
converter.convert(appendTo, mdcCustomFields, argumentArray);
45-
return appendTo.toString();
46-
}
45+
return appendTo.toString();
46+
}
4747

4848
private Map<String, String> getMdcCustomFields(ILoggingEvent event) {
4949
LogContext.loadContextFields();
@@ -52,9 +52,9 @@ private Map<String, String> getMdcCustomFields(ILoggingEvent event) {
5252
}
5353

5454
@Override
55-
public void start() {
56-
converter.setFieldName(getFirstOption());
55+
public void start() {
56+
converter.setFieldName(getFirstOption());
5757
customFieldsAdapter.initialize(getContext());
58-
super.start();
59-
}
58+
super.start();
59+
}
6060
}

0 commit comments

Comments
 (0)