Skip to content

Logger examples for logging exception #107

Closed
@michaelbrewer

Description

@michaelbrewer

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)

Activity

added a commit that references this issue on Aug 16, 2020
heitorlessa

heitorlessa commented on Aug 16, 2020

@heitorlessa
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @heitorlessa@michaelbrewer

        Issue actions

          Logger examples for logging exception · Issue #107 · aws-powertools/powertools-lambda-python