abstract logging in case console does not exist - fixes #100