use one log() method that provide both information