8000 Logger examples for logging exception · Issue #107 · aws-powertools/powertools-lambda-python · GitHub
[go: up one dir, main page]

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)

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

    Issue actions

      0