Implements logging option