Skip to content

Logger examples for logging exception #107

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

Closed
michaelbrewer opened this issue Aug 15, 2020 · 1 comment
Closed

Logger examples for logging exception #107

michaelbrewer opened this issue Aug 15, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@michaelbrewer
Copy link
Contributor

What were you initially searching for in the docs?

I am looking for code examples for logging an error with the exception

Is this related to an existing part of the documentation? Please share a link
https://awslabs.github.io/aws-lambda-powertools-python/core/logger/

Describe how we could make it clearer
Some examples of logging an exception and maybe more examples using other levels. Currently non of the code completion works in PyCharm.

If you have a proposed update, please share it here

Some sample examples or have python stubs to be used with Pycharm or VSCode.

    try:
        logger.debug("Some which might fail")
    except SomeErrorWeSuppress as e:
        logger.exception(e)
@michaelbrewer michaelbrewer added the documentation Improvements or additions to documentation label Aug 15, 2020
heitorlessa referenced this issue in heitorlessa/aws-lambda-powertools-python Aug 16, 2020
@heitorlessa
Copy link
Contributor

Hey Michael - I've just released that in 1.1.2 -- There shouldn't need a docs update as that should be a given from our side ;).

Thanks as usual for flagging these

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Development

No branches or pull requests

2 participants