logging result to console