refactoring: moved standard output functionality to Logger class