I want to send log events to Loggly as JSON objects with parameterized string messages. Our project currently has a lot of code that looks like this:
String some
Like already answered you'll get a one-dimensional JSON tree with MDC and/or using a Marker with logstash-logback-encoder.
If you are also looking for the following:
then try a project I've created: json-log-domain. It defines a simple YAML-format definition from which the above can be generated.
An example helper-code statement would be
logger.info(host("localhost").port(8080), "Hello world");
while generated markdown would like something like this.