Skip to content

Commit

Permalink
Update java-configure-logs-context-all.mdx
Browse files Browse the repository at this point in the history
Set up collapser
  • Loading branch information
barbnewrelic committed Aug 27, 2021
1 parent 8d9fea0 commit 3305dd7
Showing 1 changed file with 67 additions and 1 deletion.
Expand Up @@ -15,7 +15,73 @@ To enable logs in context for APM apps monitored by Java:

1. Make sure you have already [set up logging in New Relic](/docs/logs/enable-log-management-new-relic/enable-log-monitoring-new-relic/enable-log-management-new-relic/). This includes configuring a supported log forwarder that collects your application logs and extends the metadata that is forwarded to New Relic.
2. [Install](/docs/agents/java-agent/installation/install-java-agent/) or [update](/docs/agents/java-agent/installation/update-java-agent/) to the latest Java agent version, and [enable distributed tracing](/docs/distributed-tracing/enable-configure/quick-start/). Use [Java agent version 5.6.0 or higher](/docs/release-notes/agent-release-notes/java-release-notes/) for logs in context.
3. Configure logs in context for Java to enrich your log data, using any of the following extensions as applicable. If you use Spring or Spring Boot and aren't sure which extension you need, see our Spring documentation.
3. Configure logs in context for Java to enrich your log data, using any of the following extensions as applicable. If you use Spring or Spring Boot and aren't sure which extension you need, see our [Spring](#spring) documentation.

<CollapserGroup>
<Collapser
id="java-dropwizard"
title="Dropwizard 1.3 or higher"
>

text

</Collapser>

<Collapser
id="java-util-logging"
title="java.util.logging"
>

text

</Collapser>

<Collapser
id="java-adding-classpath"
title="java.util.logging classpath additions"
>

text

</Collapser>

<Collapser
id="java-log4j-1x"
title="Log4j 1.x"
>

text

</Collapser>

<Collapser
id="java-log4j-2x"
title="Log4j 2.x"
>

text

</Collapser>

<Collapser
id="java-logback"
title="Logback version 1.2.0 or higher"
>

text

</Collapser>

<Collapser
id="spring"
title="Spring and Springboot"
>

text

</Collapser>

</CollapserGroup>

## View logs in UI [#test-view]

Expand Down

0 comments on commit 3305dd7

Please sign in to comment.