refactor utils to component-consoler

so we can make logging in component more consistent