Skip to content

Add new AsyncLogger and AsyncTimer decorator #21

@teddius

Description

@teddius

Current situation
The ondewo logger currently only supports synchronous logging

Target situation
We want to support logging also asynchronousely. Therefore we need to extend the existing logger functionality with a new AsyncLoggerstaticmethod` to also support two use cases:

  1. Logger needs to check automatically if it is applied on an async or synchronous function so it works in both. For async functions we need to extend the logger to also work on staticmethod, classmethod and normal methods of a class.

  2. We need a new decorator @AsyncTimer(...) that should work exactly like our existing @Timer(...) decorator but on async functions

For all these cases we should write also test cases to show that the functionality works properly. Additionally we need test cases to show that the functionality works if the methods are called in a multiple threads and multiple processes setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions