Skip to content

Conversation

@c-w
Copy link
Contributor

@c-w c-w commented Mar 1, 2019

This removes an assumption that the log level should always be INFO by enabling users to call the function like so:

import logging
from applicationinsights.logging import enable

enable('my-instrumentation-key', level=logging.DEBUG)

It could be argued the the same can be achieved via: enable('key').setLevel(logging.DEBUG), but this somewhat leaks the logging handler implementation detail and leaves the current implicit INFO level undocumented.

c-w and others added 2 commits March 1, 2019 13:03
This removes an assumption that the log level should always be INFO by
enabling users to call the function like so:

```py
import logging
from applicationinsights.logging import enable

enable('my-instrumentation-key', level=logging.DEBUG)
```
@SergeyKanzhelev SergeyKanzhelev merged commit af804ce into microsoft:develop Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants