---
title: Logs
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Datadog IDE Plugins > Datadog Plugin for JetBrains IDEs > Logs
---

# Logs

## Overview{% #overview %}

The Logs integration detects log lines in your source code, displays live event counts directly in the source editor, and provides links to the Datadog [Log Explorer](https://docs.datadoghq.com/logs/explorer/) to view the logs generated by each log line.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/logs/logs.f46dc25d7e196d5ef319989ac222083b.png?auto=format"
   alt="Logs in the source editor" /%}

Hover over a log element to see matching log patterns with runtime value ranges. Use this runtime context to understand how your code behaves in production or other deployed environments.

## Log queries{% #log-queries %}

Click the log icon to query logs using Datadog:

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/logs/log-query-button.77a24da1e50e32b0e244b79ffa8e3345.png?auto=format"
   alt="The log query button" /%}

This launches the [Log Explorer](https://docs.datadoghq.com/logs/explorer/) and shows the latest log events. The query is prefilled with the environment, log status, logger name, and text elements extracted from your source code:

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/logs/browser.96add7a8f4c7f45ca3518c9fe2e816df.png?auto=format"
   alt="The log query button" /%}

Use the Datadog platform to inspect individual logs and related traces, or modify the search query to narrow down to the logs that you are most interested in.

## Supported languages and frameworks{% #supported-languages-and-frameworks %}

The Logs integration supports the following languages and logging frameworks:

- **Java & Kotlin** : [SLF4J](https://www.slf4j.org/), [Log4j 2](https://logging.apache.org/log4j/2.12.x/index.html), [java.util.logging](https://docs.oracle.com/en/java/javase/25/docs/api/java.logging/java/util/logging/package-summary.html) and [Logback](https://logback.qos.ch/)
- **Go** : [Logrus](https://github.com/sirupsen/logrus), [Zap](https://github.com/uber-go/zap) and the [log package](https://pkg.go.dev/log) in the Standard Library
- **Python** : [Python logging](https://docs.python.org/3/library/logging.html) and [Loguru](https://github.com/Delgan/loguru)
- **JavaScript & TypeScript** : [Datadog Browser Logs](https://docs.datadoghq.com/logs/log_collection/javascript/?tab=npm) and [Winston](https://github.com/winstonjs/winston)
- **PHP** : [Laravel](https://laravel.com/docs/12.x/logging), [Monolog](https://github.com/Seldaek/monolog), [Symfony](https://symfony.com/doc/current/logging.html) and [PSR-3](https://www.php-fig.org/psr/psr-3/)

## Settings{% #settings %}

Right-click a log element in the source editor to open the settings (Editor → Inlay Hints) for the current language, and to activate or deactivate the feature.

### Logger name for Java and Kotlin{% #logger-name-for-java-and-kotlin %}

In Java and Kotlin, by convention, logs are normally tagged with the logger name corresponding to the fully qualified class name of the class where the logger is created.

In rare cases, users post-process their logs data and modify the logger name tag to use only the simple class name. For these users, there is a **Logger name** setting to inform the plugin to create Log Explorer queries using the simple class name.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/logs/settings-java.1b4ced28b8062f6e65ecaf5e789ac9ab.png?auto=format"
   alt="Log settings - Java" /%}

## Advanced settings{% #advanced-settings %}

For a typical setup, the advanced settings are not required. However, if you have log events with a non-standard [logger name attribute](https://docs.datadoghq.com/standard-attributes/?product=log), you can change the "Logger name tag" setting accordingly. If you set it to blank, the logger name will not be used in log queries at all.

{% image
   source="https://datadog-docs.imgix.net/images/developers/ide_plugins/idea/logs/settings-advanced.ad49300d634b0f042297fe968acf39e8.png?auto=format"
   alt="Advanced settings" /%}

## Further reading{% #further-reading %}

- [Learn more about Logs](https://docs.datadoghq.com/logs/explorer/)
