Configure Logging
You do not need to create a log source to send logs from the AppSignal for Java integration. An “application” log source will be created automatically. The Java integration uses OpenTelemetry’s logging capabilities to send logs to AppSignal.Stand-alone usage
To use logging with OpenTelemetry in Java, you need to set up the logger using the OpenTelemetry LoggerProvider.Usage with Log4j
Log4j is automatically instrumented by the OpenTelemetry Java agent. Logs emitted using Log4j2 will automatically be sent to AppSignal. Context added usingThreadContext or within StructuredDataMessage logs will be shown as
log tags in AppSignal.
Usage with java.util.logging
Java’s built-in logging framework, java.util.logging, is automatically instrumented by the
OpenTelemetry Java agent. Logs emitted using java.util.logging will automatically be sent to
AppSignal.
Usage
Sending Logs
Using the OpenTelemetry logger directly, you can define the severity level of your logs:Filtering Logs
You can use theignore_logs configuration option to ignore log lines. See our Ignore Logs guide to learn more.