Skip to content

Commit

Permalink
Renamed to KVP
Browse files Browse the repository at this point in the history
  • Loading branch information
nehaev committed Dec 15, 2024
1 parent fe4d45e commit 094744a
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class JsonLayout extends ContextAwareBase implements Layout<ILoggingEvent
private MessageJsonProvider message;
private StackTraceJsonProvider stackTrace;
private MdcJsonProvider mdc;
private KeyValuePairsJsonProvider keyValuePairs;
private KeyValuePairsJsonProvider kvp;

private volatile boolean started;

Expand Down Expand Up @@ -72,7 +72,7 @@ public void start() {
message = ensureProvider(message, MessageJsonProvider::new);
stackTrace = ensureProvider(stackTrace, StackTraceJsonProvider::new);
mdc = ensureProvider(mdc, MdcJsonProvider::new);
keyValuePairs = ensureProvider(keyValuePairs, KeyValuePairsJsonProvider::new);
kvp = ensureProvider(kvp, KeyValuePairsJsonProvider::new);

providers = Arrays.asList(
timestamp,
Expand All @@ -82,7 +82,7 @@ public void start() {
message,
stackTrace,
mdc,
keyValuePairs
kvp
);

for (var provider : providers) {
Expand Down Expand Up @@ -149,8 +149,8 @@ public void setMdc(MdcJsonProvider mdc) {
this.mdc = mdc;
}

public void setKeyValuePairs(KeyValuePairsJsonProvider keyValuePairs) {
this.keyValuePairs = keyValuePairs;
public void setKvp(KeyValuePairsJsonProvider keyValuePairs) {
this.kvp = keyValuePairs;
}

@Override
Expand Down

0 comments on commit 094744a

Please sign in to comment.