extract log functionality to separate methods

not everyone likes mess in console :-) when it is extracted to separate methods it is much easier to customize it