Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

CORRECTION: Earlier today, NBC News reported that there was a wiretap on the phones of Michael Cohen, President Trump’s longtime personal attorney, citing two separate sources with knowledge of the legal proceedings involving Cohen.

But three senior U.S. officials now dispute that, saying that the monitoring of Cohen’s phones was limited to a log of calls, known as a pen register, not a wiretap where investigators can actually listen to calls.

NBC News has changed the headline and revised parts of the original article.

Federal investigators have monitored the phone lines of Michael Cohen, the longtime personal lawyer for President Donald Trump who is under investigation for a payment he made to an adult film star who alleged she had an affair with Trump, according to multiple senior officials and individuals with knowledge of the legal proceedings involving Cohen.

It is not clear how long the monitoring of phone calls has been authorized, but NBC News has learned it was in place in the weeks leading up to the raids on Cohen's offices, hotel room, and home in early April, according to one person with direct knowledge.

The calls are logged by what is commonly referred to as a pen register, which records the number of the phone that made the call and the number that received it, but does not record the contents of any conversation.

NBC News originally reported that Cohen's phone lines had been wiretapped, meaning a judge had given investigators approval to listen to phone calls. Three senior U.S. officials now dispute that, saying the monitoring of the calls was limited to a log of calls.

At least one phone call between a phone line associated with Cohen and the White House was logged, the person said.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Previously, federal prosecutors in New York have said in court filings that they have conducted covert searches on multiple e-mail accounts maintained by Cohen.

Spokespeople for the U.S. Attorney's Office and the FBI in New York declined comment.

After the raid, members of Trump's legal team advised the president not to speak to Cohen, according to a person familiar with the discussion.

Two sources close to Trump's attorney, Rudolph Giuliani, say he learned that days after the raid the president had made a call to Cohen, and told Trump never to call again out of concern the call was being recorded by prosecutors.

Giuliani told Fox News Wednesday night that Trump repaid Cohen the $130,000 he used to keep the adult film star, Stormy Daniels, from going public with allegations about her affair with Trump.

Giuliani is also described as having warned Trump that Cohen is likely to flip on him, something Trump pushed back on, telling Giuliani that he has known Cohen for years and expects him to be loyal, according to two sources with direct knowledge of the conversations.

Giuliani and a lawyer for Cohen, Steve Ryan, did not immediately respond to a request for comment. The White House referred NBC News to outside counsel.

Donald Trump and Rudolph Giuliani visit the Milwaukee County War Memorial Center in August 2016. Eric Thayer / Reuters

It is unclear what incriminating information Cohen could give prosecutors on Trump, if he chose to cooperate. He represented Trump and the Trump Organization in its business dealings for nearly two decades before Trump became president. Special Counsel Robert Mueller is interested in any information that federal investigators in New York may pick up that would be relevant to his investigation into possible collusion between the Trump campaign and Russia.

Cohen has previously said publicly that he would invoke his Fifth Amendment rights if subpoenaed to avoid incriminating himself before a grand jury and there is no indication from public filings that Cohen is cooperating in the probe.

The Cohen investigation is being led by the U.S. Attorney's Office in Manhattan and the FBI. Investigators are looking into the $130,000 transaction between Cohen and Daniels, also known as Stephanie Clifford, and a reported payment of $150,000 from American Media Inc., publishers of the National Enquirer, to a second woman who says she had an affair with Trump, Playboy model Karen McDougal.

The White House has denied allegations of the affairs.

Investigators are also seeking information about the 2005 "Access Hollywood" tape in which Donald Trump was heard making vulgar boasts about women.

The bureau's interest in the "Access Hollywood" tape, on which Trump bragged to host Billy Bush that he would grab women "by the p---y," was first reported by the New York Times. "Access Hollywood" is an NBC Universal television program.

Material seized from Cohen's office, hotel room and home included taped conversations, as well as cellphones and hard drives.

Cohen has asserted in court that much of the material gleaned in the raids should be protected from the eyes of prosecutors under attorney-client privilege.