Skip to content

Conversation

@pgomulka
Copy link
Contributor

@pgomulka pgomulka commented Sep 9, 2021

This commit changes default deprecation logger level to CRITICAL, where default means deprecations emitted by DeprecationLogger#critical method.
It also introduces WARN deprecations which are emitted by DeprecationLogger#warn Those log lines emitted at WARN are meant to indicate that a functionality is deprecated but will not break at next major version.
relates #76754

This commit changes default deprecation logger level to CRITICAL, where default means deprecations emitted by DeprecationLogger#critical method.
It also introduces WARN deprecations which are emitted by DeprecationLogger#warn Those log lines emitted at WARN are meant to indicate that a functionality is deprecated but will not break at next major version.
relates elastic#76754
@pgomulka pgomulka added :Core/Infra/Logging Log management and logging utilities backport v7.16.0 labels Sep 9, 2021
@pgomulka pgomulka self-assigned this Sep 9, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Sep 9, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

allOf(
hasEntry("level", "WARN"),
hasEntry("component", "o.e.d.test"),
// hasEntry("category", "other"), fix this..
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pgomulka pgomulka merged commit 4ef3a58 into elastic:7.x Sep 27, 2021
masseyke added a commit that referenced this pull request Oct 19, 2021
…#79107)

A recent change for the deprecation logs provided the capability to emit deprecation's at critical vs. warning levels, #77482.
However deprecated settings always log at critical level without the ability to express that the setting deprecation is only a
warning.

This commit exposes the ability to set the deprecation level when deprecating a setting.
Closes #78781
masseyke added a commit to masseyke/elasticsearch that referenced this pull request Oct 19, 2021
…elastic#79107)

A recent change for the deprecation logs provided the capability to emit deprecation's at critical vs. warning levels, elastic#77482.
However deprecated settings always log at critical level without the ability to express that the setting deprecation is only a
warning.

This commit exposes the ability to set the deprecation level when deprecating a setting.
Closes elastic#78781
masseyke added a commit that referenced this pull request Oct 19, 2021
…79107) (#79492)

A recent change for the deprecation logs provided the capability to emit deprecation's at critical vs. warning levels, #77482.
However deprecated settings always log at critical level without the ability to express that the setting deprecation is only a
warning.

This commit exposes the ability to set the deprecation level when deprecating a setting.
Relates #78781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Logging Log management and logging utilities Team:Core/Infra Meta label for core/infra team v7.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants