The logging is done in a very direct approach where log messages are written to console in the commonbl/logger module.
There is no abstraction with interfaces, and so the logger can not be replaced.
This is a problem especial for unit tests, since they have to use the real console and can not mock the logger instance.
Having a interface to abstract the logger, may also makes the implementation of future features a little faster in the long run.
The logging is done in a very direct approach where log messages are written to console in the
commonbl/logger
module. There is no abstraction with interfaces, and so the logger can not be replaced.This is a problem especial for unit tests, since they have to use the real console and can not mock the logger instance.
Having a interface to abstract the logger, may also makes the implementation of future features a little faster in the long run.