Skip to content
This repository has been archived by the owner. It is now read-only.

Make logging from Flask more explicit #117

Merged
merged 1 commit into from Jul 23, 2018
Merged

Make logging from Flask more explicit #117

merged 1 commit into from Jul 23, 2018

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Jul 23, 2018

We got some user feedback that their logs weren't being sent to
Application Insights from the Flask integration. This was due to a
confusion between the Python rooter logger logging.debug(...) and the
Flask loggers app.logger.debug(...). The Flask integration only sends
the latter logs to Application Insights since mutating the root logger
from a third party package would be surprising behavior.

This change makes it explicit in the documentation how the logger has to
be used so that the messages to end up in Application Insights.

We got some user feedback that their logs weren't being sent to
Application Insights from the Flask integration. This was due to a
confusion between the Python rooter logger `logging.debug(...)` and the
Flask loggers `app.logger.debug(...)`. The Flask integration only sends
the latter logs to Application Insights since mutating the root logger
from a third party package would be surprising behavior.

This change makes it explicit in the documentation how the logger has to
be used so that the messages to end up in Application Insights.
@SergeyKanzhelev SergeyKanzhelev merged commit 805f158 into microsoft:develop Jul 23, 2018
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants