Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infra for deprecation logging #11285

Merged
merged 1 commit into from
May 26, 2015

Conversation

spinscale
Copy link
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
Contributor Author

@kimchy @rjernst can you take a look?

@rjernst
Copy link
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
Copy link
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
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 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