Skip to content

Infra for deprecation logging#11285

Merged
spinscale merged 1 commit intoelastic:masterfrom
spinscale:1505-deprecation-logging
May 26, 2015
Merged

Infra for deprecation logging#11285
spinscale merged 1 commit intoelastic:masterfrom
spinscale:1505-deprecation-logging

Conversation

@spinscale
Copy link
Copy Markdown
Contributor

This is an enhancement to #11033

It adds a test, some documentation and allows to retrieve the logger via the ESLoggerFactory.

@clintongormley clintongormley added >enhancement :Core/Infra/Logging Log management and logging utilities labels May 25, 2015
@spinscale
Copy link
Copy Markdown
Contributor Author

@kimchy @rjernst can you take a look?

@rjernst
Copy link
Copy Markdown
Member

rjernst commented May 26, 2015

@spinscale I left comments directly on your commit. My only concern is checking in with an ignore on that test?

@spinscale spinscale force-pushed the 1505-deprecation-logging branch from b1589a2 to 9329e72 Compare May 26, 2015 06:40
@spinscale
Copy link
Copy Markdown
Contributor Author

@rjernst thanks for checking, agreed on the check in of a ignored test, removed it for now, I think the other one is sufficient

@rjernst
Copy link
Copy Markdown
Member

rjernst commented May 26, 2015

LGTM

Add support for a specific deprecation logging that can be used to turn
on in order to notify users of a specific feature, flag, setting,
parameter, ... being deprecated.

The deprecation logger logs with a "deprecation." prefix logge
(or "org.elasticsearch.deprecation." if full name is used), and outputs
the logging to a dedicated deprecation log file.

Deprecation logging are logged under the DEBUG category. The idea is not to
enabled them by default (under WARN or ERROR) when running embedded in
another application.

By default they are turned off (INFO), in order to turn it on, the
"deprecation" category need to be set to DEBUG. This can be set in the
logging file or using the cluster update settings API, see the documentation

Closes elastic#11033
@spinscale spinscale force-pushed the 1505-deprecation-logging branch from 9329e72 to 045f01c Compare May 26, 2015 15:54
@spinscale spinscale merged commit 045f01c into elastic:master May 26, 2015
@kevinkluge kevinkluge removed the review label May 26, 2015
@spinscale spinscale changed the title Infra for deprecation logging Logging: Infra for deprecation logging May 26, 2015
@clintongormley clintongormley changed the title Logging: Infra for deprecation logging Infra for deprecation logging Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Logging Log management and logging utilities >feature v2.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants