Make logging available for unit tests

This fix allows to write logs from unit tests.

Logger config moved to upper level in case of being available to unit tests for common classes.