Logger decorator improvement
Closed this issue · 0 comments
Vasar007 commented
Need to improve logger class decorator. It's really inconvenient and ugly to add all methods into decorator parameters like this:
@logger.decor_class_logging_error_and_time(
"__init__", "_input", "_check_interface", "_check_interfaces", "is_debug",
"predictions", "get_formatted_predictions", "output", "predict", "test",
"save_model"
)
class Shell:
...
Compare with this:
@logger.decor_class_logging_error_and_time
class Shell:
...