# Deprecation logging -- logger level

**URL:** <https://discuss.elastic.co/t/deprecation-logging-logger-level/363387>\
**Category:** Elasticsearch\
**Created:** [July 19, 2024, 4:09am UTC](https://discuss.elastic.co/t/deprecation-logging-logger-level/363387 "2024-07-19T04:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [July 19, 2024, 4:09am UTC](https://discuss.elastic.co/t/deprecation-logging-logger-level/363387/1 "2024-07-19T04:09:26Z")

</div>

Hi,  
Just wanted to understand if there is any difference in terms of the message content if the level is set to WARN or INFO for deprecation logging?

For e.g

```auto
{
  "persistent": {
    "logger.org.elasticsearch.deprecation": "<logger level>"
  }
}

```

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [July 19, 2024, 4:57am UTC](https://discuss.elastic.co/t/deprecation-logging-logger-level/363387/2 "2024-07-19T04:57:34Z")

</div>

Yes, there should be. Info provide more details than Warn. Check the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html#deprecation-logging).

---

<div class="post-metadata">

**Author:** ![Edmund\_Cheng](https://avatars.discourse-cdn.com/v4/letter/e/fbc32d/32.png) [@Edmund\_Cheng](https://discuss.elastic.co/u/Edmund_Cheng)\
**Post date:** [July 19, 2024, 6:52am UTC](https://discuss.elastic.co/t/deprecation-logging-logger-level/363387/3 "2024-07-19T06:52:10Z")

</div>

Hi,  
I did see that doc, but it makes no mention of INFO level actually, which brings me to some questions. (Using SaaS Elasticsearch)

- If we do not set anything in logger.org.elasticsearch.deprecation, does it mean it will still write deprecation logs by default?
- If we do set any forms of logger level, e.g INFO, how does it then affect the log levels given the explanation below says it emits at CRTITCAL level and then sometimes it emits at WARN level if feature is less critical.

> Elasticsearch also writes deprecation logs to the log directory. These logs record a message when you use deprecated Elasticsearch functionality. You can use the deprecation logs to update your application before upgrading Elasticsearch to a new major version.  
> By default, Elasticsearch rolls and compresses deprecation logs at 1GB. The default configuration preserves a maximum of five log files: four rolled logs and an active log.  
> Elasticsearch emits deprecation log messages at the `CRITICAL` level. Those messages are indicating that a used deprecation feature will be removed in a next major version. Deprecation log messages at the `WARN` level indicates that a less critical feature was used, it won’t be removed in next major version, but might be removed in the future.
