Skip to content

Explore decorator for logging #548

@JoeZiminski

Description

@JoeZiminski

Currently logging works by initializing the logger at the start of a function and then tearing it down at the end (also, the logger is closed if an error is raised).

This is okay-ish but it requires remembering to set up and close down logging for all new public functions, which is very easy to forget and is not properly documented anywhere (another reason for #82).

It would be better to have a decorator to handle this, or some other solution that requires having to handle logging manually for each new method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions