The way of logging is not clear enough. Decorators introduce certain redundancy as you must double method declaration in logger module each time. Why not to just use python logging library with custom configuration for each process (eliminates dependency). There is no problem to put your logs with appropriate log level directly into your code and filter levels in prod mode. Do something like that instead (in)
import logging
class BaseMicro:
def __init__(self) -> None:
self.logger = logging.getLogger('your_package_logger')
You can init your logger(for the whole package) in your init.py.
The way of logging is not clear enough. Decorators introduce certain redundancy as you must double method declaration in logger module each time. Why not to just use python logging library with custom configuration for each process (eliminates dependency). There is no problem to put your logs with appropriate log level directly into your code and filter levels in prod mode. Do something like that instead (in)
You can init your logger(for the whole package) in your init.py.