Skip to content

Commit 1f6052a

Browse files
authored
Update README.md
1 parent 414d91a commit 1f6052a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

logback/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,12 @@ in the previous step.
5555
<appender-ref ref="ASYNC" />
5656
</root>
5757
```
58+
59+
## Adding Custom Arguments to JSON Log
60+
61+
As of `com.newrelic.logging:logback:2.3` you can add custom arguments in the JSON log for logback as follows:
62+
63+
```
64+
import static com.newrelic.logging.logback.CustomArgument.keyValue;
65+
logger.info("Custom log", keyValue("customKey", "customValue"));
66+
```

0 commit comments

Comments
 (0)