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:
-
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.
-
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.
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:Logger needs to check automatically if it is applied on an async or synchronous function so it works in both. For
asyncfunctions we need to extend the logger to also work onstaticmethod,classmethodand normal methods of a class.We need a new decorator
@AsyncTimer(...)that should work exactly like our existing@Timer(...)decorator but onasyncfunctionsFor 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.