refactoring: simplify log types handling