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

Add a way to programmatically update log levels #658

Merged
merged 3 commits into from
Oct 29, 2020

Conversation

ZakarFin
Copy link
Member

@ZakarFin ZakarFin commented Oct 27, 2020

Allows admin-users to make requests to server that change log levels at runtime. Makes it easier to debug on production.

Setting root-logger to logging level warn:

fetch("https://oskari.org/action?action_route=Logger&level=warn", {
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

Set debug logging for classes under org.oskari:

fetch("https://oskari.org/action?action_route=Logger&level=debug&name=org.oskari", {
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});

@sonarcloud
Copy link

sonarcloud bot commented Oct 28, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@ZakarFin ZakarFin added this to the 2.1.0 milestone Oct 28, 2020
@ZakarFin ZakarFin merged commit 96340df into oskariorg:develop Oct 29, 2020
@ZakarFin ZakarFin deleted the logger branch October 29, 2020 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant